Templa...DF::EM(3pm)

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

πŸ’– Template::Declare::TagSet::RDF::EM β€” the manual, but make it cute πŸ’–

okay so bestie, this is Templa...DF::EM(3pm) from the User Contributed Perl Documentation, and it's literally the tag set for Mozilla's em-rdf. let's get into it πŸ¦‹


✨ NAME ✨

Template::Declare::TagSet::RDF::EM β€” it's the Template::Declare TAG set for Mozilla's em-rdf. that's the whole name, periodt. πŸ’…


🌸 SYNOPSIS 🌸

here's how you'd normally use it on your side, the user side, no cap:

# normal use on the user side:
use base 'Template::Declare';
use Template::Declare::Tags 'RDF::EM' => { namespace => 'em' }, 'RDF';

template foo => sub {
    RDF {
        attr {
            'xmlns' => "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
            'xmlns:em' => 'http://www.mozilla.org/2004/em-rdf#'
        }
        Description {
            attr { about => 'urn:mozilla:install-manifest' }
            em::id { 'foo@bar.com' }
            em::version { '1.2.0' }
            em::type { '2' }
            em::creator { 'Agent Zhang' }
        }
    }
};

like, look at that. iconic. 😌


πŸŽ€ DESCRIPTION πŸŽ€

so Template::Declare::TagSet::RDF::EM defines a full set of Mozilla EM-RDF tags for use in Template::Declare templates. lowkey you generally won't use this module directly, bestie β€” you'll load it via:

use Template::Declare::Tags 'RDF::EM';

and let it do its thing. main character energy, honestly. ✨


πŸ‘‘ METHODS πŸ‘‘

🧚 new( PARAMS )

my $html_tag_set = Template::Declare::TagSet->new({
    package   => 'EmRDF',
    namespace => 'em-rdf',
});

this constructor is inherited from Template::Declare::TagSet. so you don't have to write it, it just comes with the vibes. 🫢

πŸ’… get_tag_list

my $list = $tag_set->get_tag_list();

returns an array ref of all the RDF tags defined by Template::Declare::TagSet::RDF. and here's the complete list, bestie, we're not skipping a single one:

  • "aboutURL"
  • "contributor"
  • "creator"
  • "description"
  • "developer"
  • "file"
  • "hidden"
  • "homepageURL"
  • "iconURL"
  • "id"
  • "locale"
  • "localized"
  • "maxVersion"
  • "minVersion"
  • "name"
  • "optionsURL"
  • "package"
  • "requires"
  • "skin"
  • "targetApplication"
  • "targetPlatform"
  • "translator"
  • "type"
  • "updateURL"
  • "version"
heads up though β€” this list may be not exhaustive. if you find some important missing ones, please let us know. :) 🌈

⭐ AUTHOR ⭐

Agent Zhang <agentzh@yahoo.cn> β€” thank you for your service, king. πŸ‘‘


πŸ”₯ SEE ALSO πŸ”₯

go read these next, iykwim:

  • Template::Declare::TagSet
  • Template::Declare::TagSet::RDF
  • Template::Declare::TagSet::XUL
  • Template::Declare::Tags
  • Template::Declare

and that's a wrap bestie!! πŸ’– this lil beauty is perl v5.34.0, dated 2022-06-17, and that's the Templa...DF::EM(3pm) page. slay, ate, no crumbs left. πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from