HTML::...hRecipe(3pm)

✨ NAME ✨

okay bestie, so like β€” HTML::Microformats::Format::hRecipe πŸ’– it's the hRecipe microformat, and it's living in the 3pm man section, iykyk. That's the whole vibe. Recipes, but make them machine-readable. Slay.


πŸŽ€ SYNOPSIS πŸŽ€

here's the whole thing, copy-paste ready, no notes:

use Data::Dumper;
use HTML::Microformats::DocumentContext;
use HTML::Microformats::Format::hRecipe;

my $context = HTML::Microformats::DocumentContext->new($dom, $uri);
my @recipes = HTML::Microformats::Format::hRecipe->extract_all(
                  $dom->documentElement, $context);
foreach my $recipe (@recipes)
{
  print $recipe->get_summary . "\n";
}

like. look at her go. ✨


πŸ’… DESCRIPTION πŸ’…

so HTML::Microformats::Format::hRecipe inherits from HTML::Microformats::Format. that's the parent, the mother, the blueprint πŸ‘‘

if you wanna know about property getter/setter methods, constructors, and all that other foundational lore β€” go read the base class definition, because this page is not the place. this page is the recipe-specific girlie. 🧚


🌸 MICROFORMAT 🌸

HTML::Microformats::Format::hRecipe supports hRecipe 0.23 β€” yes, exactly that version, no cap β€” as described at <http://microformats.org/wiki/hrecipe>. go read the source, bestie, it's giving documentation. πŸ’œ


🌈 RDF OUTPUT 🌈

two namespaces in the mix, keep them in your notes:


πŸ’€ BUGS πŸ’€

found a bug? 😭 please report any bugs to <http://rt.cpan.org/>. do not suffer in silence, that's not the move. 🫢


πŸ”₯ SEE ALSO πŸ”₯

  • HTML::Microformats::Format
  • HTML::Microformats

both iconic, both worth your time. periodt.


πŸ‘‘ AUTHOR πŸ‘‘

Toby Inkster <tobyink@cpan.org>. the main character. the one who did that. πŸ’–


Copyright 2008-2012 Toby Inkster

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


πŸ™ˆ DISCLAIMER OF WARRANTIES πŸ™ˆ

THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

ok so like, big dramatic warning but it is REAL β€” no promises, no guarantees, that's the whole deal. ⚠️


aaaand that's the page bestie!! 🌟 this was perl v5.32.1, dated 2021-09-12, and it came to you courtesy of HTML::...hRecipe(3pm). mwah πŸ’‹ go read some recipes. πŸ¦‹

πŸ“¦ where this page comes from