Templa...t::RDF(3pm)
π NAME π
okay bestie, gather round: Template::Declare::TagSet::RDF β it's the Template::Declare tag set for RDF. that's the whole vibe. β¨
πΈ SYNOPSIS πΈ
here's how you actually use it on your side, no cap:
# normal use on the user side:
use base 'Template::Declare';
use Template::Declare::Tags RDF => { namespace => 'rdf' };
template foo => sub {
rdf::RDF {
attr { 'xmlns:rdf' => "http://www.w3.org/1999/02/22-rdf-syntax-ns#" }
rdf::Description {
attr { about => "Matilda" }
#...
}
}
};
likeβ¦ look at that nesting. it's giving structure. it's giving β¨semanticsβ¨. obsessed. π«Ά
π¦ DESCRIPTION π¦
so Template::Declare::TagSet::RDF defines a full set of RDF tags for use in Template::Declare templates. that's its whole job and it does it flawlessly, periodt. π
but here's the tea: you generally won't use this module directly, bestie. instead you load it via:
use Template::Declare::Tags 'RDF';
that's the move. that's the way. π
π METHODS π
π new( PARAMS )
my $html_tag_set = Template::Declare::TagSet->new({
package => 'MyRDF',
namespace => 'rdf',
});
this is the constructor, and it's inherited from Template::Declare::TagSet. lowkey iconic of it to just inherit like that. π
β 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. yes, an array ref. not a list. an array ref. noted. π
and here is the complete list, character for character, because we do not skip details in this house:
"Alt""Bag""Description""List""Property""RDF""Seq""Statement""XMLLiteral""about""li""first""nil""object""predicate""resource""rest""subject""type""value""_1""_2""_3""_4""_5""_6""_7""_8""_9""_10"
heads up though β this list may be not exhaustive. so if you find some important missing ones, please let us know. :) π (yes the smiley is canon, i'm keeping the smiley, it's cute)
π AUTHOR π
Agent Zhang <agentzh@yahoo.cn> β the mastermind. the main character. thank you for your service. π«‘π
π₯ SEE ALSO π₯
go read these next, bestie, they're all part of the same little universe:
Template::Declare::TagSetTemplate::Declare::TagSet::HTMLTemplate::Declare::TagSet::XULTemplate::Declare::TagsTemplate::Declare
and that's a wrap on the Template::Declare::TagSet::RDF(3pm) page, from the User Contributed Perl Documentation, brought to you by perl v5.34.0, dated 2022-06-17. mwah, slay, go write some RDF, ily ππ¦β¨
π¦ 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