What benefit would this provide over simply executing the function and passing the return value in? It sounds like you want a CMS and not a templating system. Maybe look at Mason? TT is also kinda-CMS-kinda-templating, and it does it quite nicely.

We are the carpenters and bricklayers of the Information Age.

Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

In reply to Re: Callbacks and templates. by dragonchild
in thread Callbacks and templates. by LukeyBoy

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":