i have a large variable structure that contains the following
c.config.template.wrapper.header
which contains the value "generic/wrapper/header.tt2"
I grab the data in 3 different ways...
c.config.template.wrapper.header # returns
generic/wrapper/header.tt2 as expected
${c.config.template.wrapper.header} # returns nothing as expected
$c.config.template.wrapper.header # returns nothing as expected
BUT
if i do this...
[% INCLUDE c.config.template.wrapper.header %] # error, no such file
[% INCLUDE ${c.config.template.wrapper.header %] # couldn;t render
template... unexpected token (${_
[% INCLUDE $c.config.template.wrapper.header %] # does the correct
thing and loads the proper template
Now I can understand that ..
[% INCLUDE c.config.template.wrapper.header %]
not finding the file since the first assumption is that INCLUDE is
followed by a filename
but why does $c.config.template.wrapper.header return a different
value within INCLUDE than it does outside it?
_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates