Pod::P...::HTML(3pm)

πŸ“¦
version 0.19 Β· 5 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Pod::PseudoPod::HTML(3pm) πŸ’–

okay so bestie, welcome to Pod::PseudoPod::HTML β€” it's the Perl module that formats PseudoPod as HTML. yes, that's the whole vibe. no cap.

This is from the User Contributed Perl Documentation, and it's giving iconic formatter energy ✨


✨ NAME ✨

Pod::PseudoPod::HTML β€” format PseudoPod as HTML πŸŽ€


🌸 SYNOPSIS 🌸

use Pod::PseudoPod::HTML;

my $parser = Pod::PseudoPod::HTML->new();

...

$parser->parse_file('path/to/file.pod');

like... that's it. that's the whole thing. slay πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

So this class is a formatter, right? It takes PseudoPod and renders it as wrapped html. That's its whole job and it does it.

It's a subclass of Pod::PseudoPod and it inherits all its methods, so everything your PseudoPod parser could do before? still there. periodt πŸ’œ


πŸ‘‘ METHODS πŸ‘‘

πŸ’… add_body_tags

$parser->add_body_tags(1);
$parser->parse_file($file);

This one adds beginning and ending <html> and <body> tags to the formatted document. like it literally just wraps the whole thing up for you 🎁


πŸŽ€ add_css_tags

$parser->add_css_tags(1);
$parser->parse_file($file);

okay so this one imports a css stylesheet into the html document, and also adds additional css tags to url, footnote, and sidebar elements so everything displays nicer ✨

⚠️ but listen β€” if you're not planning on writing a style.css file (or using the one provided in examples/), you probably don't want this option on. fr fr. it'll just be looking for a stylesheet that isn't there bestie 😭

🌈 SEE ALSO 🌈

  • Pod::PseudoPod
  • Pod::Simple

Copyright (c) 2003-2004 Allison Randal. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of the license can be found in the LICENSE file included with this module.

This library is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. (so like, it's free, be cool about it 🫢)


⭐ AUTHOR ⭐

Allison Randal <allison@perl.org> πŸ‘‘


and that's the whole page bestie!! πŸ’–

this was perl v5.36.0, dated 2022-10-16 β€” shoutout to the Pod::PseudoPod::HTML(3pm) era, we love her πŸ¦‹βœ¨

πŸ“¦ where this page comes from