Menu

what about a skip parsing tag?

frapan
2001-08-16
2001-12-06
  • frapan

    frapan - 2001-08-16

    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

     
    • Andrey Melnikov

      Andrey Melnikov - 2001-12-06

      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 :)

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.