> > <% set printed_lastname = 'g.firstname g.lastname' %># interprets 
> > variable values as literals
> > <% set printed_lastname = g.firstname g.lastname %># produces 
> > syntax error
> 
> Maybe
> <% set printed_name = g.firstname _ g.lastname %>

I'd go with Mark's simple concatenation, but just to be thorough, it
should be noted that you can interpolate vars in a string using
double-quotes and a dollar sign, with added curly braces to clearly
delineate references:

<% set printed_lastname = "${g.firstname} ${g.lastname}" %>

_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to