HTML::...Parser(3pm)

πŸ“¦
version 1.003 Β· 2 versions
  • 1.003 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 1.003 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ 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