Templa...DF::EM(3pm)
π 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::TagSetTemplate::Declare::TagSet::RDFTemplate::Declare::TagSet::XULTemplate::Declare::TagsTemplate::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
- debian bookworm: libtemplate-declare-perl 0.47-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libtemplate-declare-perl 0.47-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libtemplate-declare-perl 0.47-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libtemplate-declare-perl 0.47-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libtemplate-declare-perl 0.47-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms