As I understand it, when you call include it localises all variables, so changes made inside the included file are discarded. In general this is desirable
I have a requirement for one or more templates (???) to have a state variable Snippet: [% var = var + 1 %] var is now [% var %] Main file : [% var = 10 %] [% INCLUDE snippet %] [% INCLUDE snippet %] I would like this to print 11 then 12 . Any hints as to how to do this _______________________________________________ templates mailing list templates@template-toolkit.org http://mail.template-toolkit.org/mailman/listinfo/templates