Hi!
I want to suggest new feature for HTML::Template.
Why we can't set filename in <TMPL_INCLUDE> from script yet?
Is it not secure enough?
Imagine, for example:
<TMPL_INCLUDE VAR='body' DEFAULT='default.tmpl'>
And, in script:
$tmpl->param(body=>'filename.tmpl');

Of course, using NAME='body'
(with <TMPL_INCLUDE DEFAULT='filename.tmpl'> for static filenames)
would be more consequtively, but it is already used
and should be saved for compatibility.

This feature could be useful when we operate with a set of templates
(including many parameters) and document bodies.
And, maybe, anyone can suggest more elegant way for such things
(except for header/footer splitting of template)?
Of course, one can load file in script and insert it through <TMPL_VAR>,
but it is not so convenient and, I think, slightly breaks main concept: code and markup
separating.
Besides, included file can also contain templates.

Vitaly.




-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users
  • ... Виталий Чесноков
    • ... Philip S Tellis

Reply via email to