in reply to working with templates

HTML::Template has the TMPL_INCLUDE tag which can include a static file. However, I do not think you can use a variable include filename with H::T.

You can do it with Template Toolkit, though. If you've got a template variable called 'filename' then [% INCLUDE $filename %] will work.

Replies are listed 'Best First'.
Re^2: working with templates
by GertMT (Hermit) on Apr 24, 2007 at 20:04 UTC
    thanks,
    Working with these template variables is a bit over the top of my head at the moment. Couldn't figure out how to code that. Well I'll work harder and look for the most simple solution.
    Gert
Re^2: working with templates
by tinita (Parson) on Apr 26, 2007 at 12:07 UTC
    HTML::Template has the TMPL_INCLUDE tag which can include a static file. However, I do not think you can use a variable include filename with H::T.
    you can do this with HTML::Template::Compiled: INCLUDE_VAR