Guys,

Okay, the canonical MACRO example goes something like:

        [% MACRO commify(n) GET n.chunk(-3).join(',') %]

Simple enough. But what if you have decimal places on the end? I mean, I know I can do this the hard way, but I keep feeling like I'm missing something. Is there some easy way, or maybe existing plugin/filter/predefined macro somewhere? I'm sure it's a problem others have faced before me.

TIA.


-- Buddy

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to