Templa...L::File(3pm)
β¨ Template::Plugin::XML::File β¨
ok so bestie, this is a Template Toolkit plugin for XML files π β it's Template::Plugin::XML::File from the User Contributed Perl Documentation, and honestly? she's giving "the XML file just vibes in your template" and we're obsessed π
πΈ SYNOPSIS πΈ
so there's like... multiple ways to hand her an XML file name, and she does not judge, she accepts them all π«Ά
# different want to specify an XML file name
[% USE xf = XML.File( filename ) %]
[% USE xf = XML.File( file = filename ) %]
[% USE xf = XML.File( name = filename ) %]
[% USE xf = XML.File( xml_file = filename ) %]
and if you're more of a file-handle girlie, she's got you too π
# different want to specify an XML file handle
[% USE xf = XML.File( handle ) %]
[% USE xf = XML.File( fh = handle ) %]
[% USE xf = XML.File( handle = handle ) %]
[% USE xf = XML.File( xml_fh = handle ) %]
and then you can just... peek at what she's holding π
[% xf.type %] # 'name' or 'handle'
[% xf.name %] # filename (if defined)
[% xf.handle %] # file handle (if defined)
like, xf.type tells you whether she's running on a 'name' or a 'handle', xf.name gives you the filename if defined, and xf.handle gives you the file handle if defined. slay. π
π¦ DESCRIPTION π¦
TODO
ngl bestie the docs said TODO here, so that's literally all there is. no cap. π
π METHODS π
TODO
yeah... also TODO. the author said "figure it out" and honestly? iconic behaviour. β¨
π AUTHORS π
Andy Wardley, Mark Fowler and others... π
we love a collaborative moment fr fr π«Ά
π COPYRIGHT π
TODO
yes, another TODO. it's giving "left as an exercise for the reader". π
β SEE ALSO β
go off and read these too, they're all part of the same little family π
TemplateTemplate::PluginsTemplate::Plugin::XML::DOMTemplate::Plugin::XML::RSSTemplate::Plugin::XML::SimpleTemplate::Plugin::XML::XPath
and that's the whole thing bestie π this lil page came from perl v5.34.0 and was last touched on 2022-07-04 β go forth and parse some XML, you main character π§ββοΈπ
π¦ where this page comes from
- debian bookworm: libtemplate-plugin-xml-perl 2.17-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libtemplate-plugin-xml-perl 2.17-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libtemplate-plugin-xml-perl 2.17-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libtemplate-plugin-xml-perl 2.17-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libtemplate-plugin-xml-perl 2.17-6 Β· 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