HTML::...:Indent(3pm)

πŸ“¦
version 2.07000 Β· 5 versions
, in debian bookworm, ubuntu jammy, ubuntu noble

πŸ’– HTML::FormFu::OutputProcessor::Indent πŸ’–

okay bestie, welcome to HTML::FormFu::OutputProcessor::Indent (that's the 3pm one, perl squad represent 🫢) β€” the little output processor whose whole entire job is to make your HTML output look pretty. Nicely indented. Gorgeous. Instagram-ready. ✨

version 2.07 btw, just so you know what you're working with πŸ’…


🌸 SYNOPSIS 🌸

---
output_processors:
  - Indent

that's it. that's the whole vibe. drop it in your config and the HTML gets the glow-up. no cap. πŸŽ€


✨ METHODS ✨

πŸ’œ indent

Arguments: $string

Default Value: "\t"

so this is the string it uses to indent your HTML. the default is a tab ("\t"), which is lowkey the classic move, but you can pass literally any string you want in there if tabs aren't your thing. spaces girlies, this one's for you. πŸ¦‹


🩡 preserve_tags

Arguments: \@tags

Default Value: ['pre', 'textarea']

an arrayref of tag names whose contents should not be processed. like, hands off, do not touch, this content stays exactly as it is. πŸ™ˆ

by default it's pre and textarea β€” which makes SO much sense because messing with the whitespace inside those would be an absolute crime against humanity (and also against whoever's reading that text). so the processor just... leaves them alone. respectful queen behavior. πŸ‘‘


πŸ‘€ SEE ALSO πŸ‘€

  • it's a sub-class of, and inherits methods from HTML::FormFu::OutputProcessor β€” so all the family traits come along for the ride 🧚
  • HTML::FormFu β€” the main character, the parent of the whole situation ⭐

πŸŽ€ AUTHOR πŸŽ€

Carl Franks cfranks@cpan.org


🌈 LICENSE 🌈

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.


πŸ’– AUTHOR πŸ’–

Carl Franks <cpan@fireartist.com>

(yes bestie, the author section shows up twice β€” that's not me being messy, that's just how the page is fr fr 😭)


This software is copyright (c) 2018 by Carl Franks.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.


and that's the whole page, periodt πŸ’…βœ¨

cute little sign-off for you: this beauty was documented under perl v5.28.1, dated 2019-01-12 β€” iconic, timeless, a classic. go forth and indent responsibly, bestie πŸ¦‹πŸŒΈπŸ’œ

πŸ“¦ where this page comes from