in reply to Dynamic includes in Template::Toolkit
[cut] The INCLUDE directive automatically quotes the filename specified, as +per INSERT described above. When a variable contains the name of the +template for the INCLUDE directive, it should be explicitly prefixed +by '$' or double-quoted [% myheader = 'my/misc/header' %] [% INCLUDE myheader %] # 'myheader' [% INCLUDE $myheader %] # 'my/misc/header' [% INCLUDE "$myheader" %] # 'my/misc/header'
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Dynamic includes in Template::Toolkit
by Molt (Chaplain) on May 07, 2003 at 11:46 UTC |