sorry for my english and thanks for this useful module.
sometimes i use HTML::Template to generate something like meta-template (html pages that will be re-parsed at runtime by HTML::Template on client request).
for example it can be useful if u want to pre-generate a search template and use it to pretty-formatted search result page (they have to be dinamic).
if i need some tmpl_vars or tmpl_loops in these pre-generated template, i need to do somethig like these orrible things:
So, i think it could be useful to create a new skip tag (<tmpl_skip>,</tmpl_skip>?) to allow some parts of the page not to be parsed by HTML::Template.
Is it a good idea??
thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I don't think so.
1. I don't understand why do you need meta-templates :) Sometimes you can avoid this with
$tmpl_1->param('VAR'=>$_tmpl2->output()).
2. The advantage of HTML::Template is that it's very simple so we should check seven times before we extend the syntax.
3. Other template libraries support meta-templates functionality in completely different way than <tmpl_skip>
Please describe what do you want to do and how <tmpl_skip> helps you. You should understand - no one will make changes to this project until we know what we are doing :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
sorry for my english and thanks for this useful module.
sometimes i use HTML::Template to generate something like meta-template (html pages that will be re-parsed at runtime by HTML::Template on client request).
for example it can be useful if u want to pre-generate a search template and use it to pretty-formatted search result page (they have to be dinamic).
if i need some tmpl_vars or tmpl_loops in these pre-generated template, i need to do somethig like these orrible things:
foo => '<tmpl_var foo>',
loop => '<tmpl_loop bar>'.
So, i think it could be useful to create a new skip tag (<tmpl_skip>,</tmpl_skip>?) to allow some parts of the page not to be parsed by HTML::Template.
Is it a good idea??
thanks
I don't think so.
1. I don't understand why do you need meta-templates :) Sometimes you can avoid this with
$tmpl_1->param('VAR'=>$_tmpl2->output()).
2. The advantage of HTML::Template is that it's very simple so we should check seven times before we extend the syntax.
3. Other template libraries support meta-templates functionality in completely different way than <tmpl_skip>
Please describe what do you want to do and how <tmpl_skip> helps you. You should understand - no one will make changes to this project until we know what we are doing :)