Let
INCLUDE_PATH => [ '/tmpl1', '/tmpl2']

in index.html:
...
[% INCLUDE menu.tmpl %]

[% IF menu.tmpl from '/tmpl1' %]
 do one,
[% ELSIF menu.tmpl from '/tmpl2' %]
do two
[% END %]
...

How to determine, from what directory the file menu.tmpl - from '/tmpl1 ' or from 
'/tmpl2 ' was included?




Reply via email to