[Templates] PROCESS seems not to work inside a template
Emmanuel Quevillon
tuco at pasteur.fr
Wed Oct 17 13:32:19 BST 2007
Hi,
I am quite new to template toolkit.
I a trying to include a template into another one and use
PROCESS to do it.
my first template (A) has some html code
my second template (B) has some html code too.
This how I try to use it:
A:
===
<html>
...
[% FOREACH foo IN bar %]
..
[% PROCESS B item = foo.items %]
...
[% END %]
...
</html>
B:
===
[% FOREACH i IN item %]
[% i.name %]
[% END %]
However, doing it this way, it returns nothing at all, not
even the HTML code produced before the PROCESS directive.
I know, from the Manual, that it is possible to pass some
parameters to PROCESS.
So I wonder if I am doing something wrong?
Can somebody help me?
Thanks a lot
E.
More information about the templates
mailing list