HTML::...Parser(3pm)
β¨ NAME β¨
HTML::Template::Compiled::Parser β it's the parser module for HTML::Template::Compiled, bestie π
πΈ SYNOPSIS πΈ
Okay so real talk: this module is used internally by HTML::Template::Compiled, so the API is not fixed (yet!!), which means this is just here so you can understand what's going on 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
],
],
);
like, look at that tagstyle array slaying π
β you can turn styles off with a -name and on with a +name, and you can even roll your own regexes if you're feeling main character energy today.
π AUTHOR π
Tina Mueller β¨ (iconic behaviour, honestly)
and that's the whole page, no cap π this was HTML::...Parser(3pm) from the User Contributed Perl Documentation, sitting pretty in perl v5.36.0, dated 2022-11-19. bye bestie, go parse something cute ππ
π¦ where this page comes from
- debian bookworm: libhtml-template-compiled-perl 1.003-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libhtml-template-compiled-perl 1.003-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libhtml-template-compiled-perl 1.003-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libhtml-template-compiled-perl 1.003-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libhtml-template-compiled-perl 1.003-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms