{{set . "title" "Home"}} {{template "header.html" .}}
Learn how to use the Revel validation framework. Each sample has it own controller and it own templates. {{/* Don't forget to take a look at the the conf/messages file. */}}
This sample shows very basic validation. All errors are displayed at the top of the form.
Same controller than for the 1st sample, but errors are displayed inline, next to each field.
This demonstrates best practice for validating a struct (bean), rather than many individual fields.
Same validation as Sample 3, but the template use the {{"{{field}}"}} tag to scope all field data (error, flash, name, ...) to a single part of the template.