[Catalyst] Make the money format macro globally available.

Duncan Garland Duncan.Garland at motortrak.com
Tue Sep 21 16:52:10 GMT 2010


How do you make the money macro available in all templates?

[% USE money=format('%.2f') -%]

Presumably something goes in here:

__PACKAGE__->config(
    TEMPLATE_EXTENSION => '.tt',
    render_die => 1,
    WRAPPER => 'wrapper.tt',
);

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20100921/8d9b3604/attachment.htm


More information about the Catalyst mailing list