Howto customize lookup of template variables?

Howto customize lookup of template variables?

Hi,

With the template plugin, is it possible to customize the lookup of a variable ${foo}, or the evaluation of an expression for that matter... ?

One of the reasons I'd like that for example is to have ${foo} by rendered with another (nested) template. But I don't want to template author to care about that. I don't want them to have to write ${renderWithTemplate(foo)} or something of the sort.

Thanks!
Boris