Dmitry Katsubo wrote:
> [% PROCESS 'tables/headers/' _ (param.body_tmpl || 'simple_body') _ 
> '.html.tmpl' %]

It's possible if you use an intermediate variable:

[% file = 'tables/headers/' 
        _ (param.body_tmpl || 'simple_body') 
        _ '.html.tmpl' %]

[% PROCESS $file %]

> As for me, I do not understand, why PROCESS is a bit special. 

In most cases, PROCESS, etc., are followed by a filename rather than a
variable.  It's optimised for that case, to avoid having to always quote
filenames:

   [% PROCESS "header.txt" %]

A


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

Reply via email to