On Tue, Mar 1, 2011 at 2:14 PM, Bill Ward <[email protected]> wrote:

> The issue here is that my database values are all lowercase, but I wanted
> to display a menu in mixed case, and have the currently selected value
> appear in lowercase as well as the value attribute of the <option> tag be
> the lowercase value.  Since this is an admin page it's not a huge deal and
> I'll just display lowercase, but this seemed to me to be something that
> should be easily doable without having to do strange hacks.  It'd be pretty
> easy to add some new vmethods to a future version of the Template Toolkit if
> the powers that be agreed with me....?
>
>
If you're not aware, it's quite easy to add your own vmethods:

http://tt2.org/docs/manual/VMethods.html#section_Defining_Custom_Virtual_Methods
_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to