Christoph Reck wrote:
>
> Theo, maybe you can write an #eval directive for anakia use -
> #eval("#match_$macroname")?
>
> In worst case it should involve creating a template out of a
> string, compiling and merging it. But maybe there might be a
> shortcut - maybe you can ask for a hint from Geir?
Er, that's what interpolation does right now :
#set $foo = " #if( true ) Condition was true! #else This can't happen!
#end"
will result in
$foo -> Condition was true!
and you can stick anything in the string lit that you want parsed and
rendered.
geir
>
> Cheers,
> Christoph
>
> Theo Keyzer wrote:
> >
> > > Now, this bit about 'functional interpolation' or whatever you want to
> > call
> > > something like '#$macroname()' might be very easy to do, but is, I
> > believe,
> > > currently outside of the general consensus of what VTL allows. I think
> > that
> > > if we do want that sort of facility, it should be a new directive, such as
> > > #eval( ... ) or similar to both make clear what the template author
> > intends
> > > as well as make easy the ability to shut it off.
> > >
> > > If you really need that sort of thing right now, there always is perl :)
> > >
> > > geir
> >
> > A #match_$macroname() will do - only enabled in combination
> > with Anakia. If it can't find the macro it must just ignore it.
> >
> > There is always the another option, use a lot of (if)
> > statements in your template and make it look ugly :)
> >
> > Theo
--
Geir Magnusson Jr. [EMAIL PROTECTED]
Dakota tribal wisdom: "when you discover you are riding a dead horse,
the best strategy is to dismount."