[Catalyst] "Best Practice" for validating form input

João Gomes joao.gomes at log.pt
Fri Aug 26 17:39:14 CEST 2005


On Aug 26, 2005, at 2:26 PM, Kevin Old wrote:

> On 8/25/05, Perrin Harkins <perrin at elem.com> wrote:
> [snip]
>
>> 200px;<tmpl_if err_first_name> background-color: #ffe66b;</ 
>> tmpl_if>" />
>>
>
> Perrin,
>
> Thanks for the example code.  Any idea if HTML::Mason has an
> equivalent of HTML::Template's <tmpl_if>?  I'm trying to avoid a huge
> <%perl> block with an if statement in each <input>.
>

<% (condition) ? 'true value to print' : 'false value to print' %>
--
João Gomes
joao.gomes at log.pt


>
> Thanks for your help,
> Kevin
> -- 
> Kevin Old
> kevinold at gmail.com
>
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst
>




More information about the Catalyst mailing list