[Templates] Appending HTML to a var ............
Andy Wardley
abw at wardley.org
Fri Dec 7 18:13:50 GMT 2007
Anthony Gardner wrote:
> But, it it possible to add/append raw html code to a var of some type
> for later use or is my method above The Way to do it?
[% stuff = [ ]; # define a list
CALL stuff.push('hello'); # push something onto the list
CALL stuff.push('world'); # ditto
...etc...
%]
...later...
[% stuff.join %] # join the items in the list
HTH
A
More information about the templates
mailing list