logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

HTML::Template::Compiled::Parser - Parser module for HTML::Template::Compiled

Author

       Tina Mueller

perl v5.36.0                                       2022-11-19              HTML::Template::Compiled::Parser(3pm)

Name

       HTML::Template::Compiled::Parser - Parser module for HTML::Template::Compiled

Synopsis

       This module is used internally by HTML::Template::Compiled. The API is not fixed (yet), so this is just
       for understanding at the moment.

           my $parser = HTML::Template::Compiled::Parser->new(
               tagstyle => [
                   # -name deactivates style
                   # +name activates style
                   qw(-classic -comment +asp +php),
                   # define own regexes
                   # e.g. for tags like
                   # {{if foo}}{{var bar}}{{/if foo}}
                   [
                   qr({{), start of opening tag
                   qr(}}), # end of opening tag
                   qr({{/), # start of closing tag
                   qr(}}), # end of closing tag
                   ],
               ],
           );

See Also