Templa...coding(3pm)
π Tempate::Plugin::encoding(3pm) β aka the Template plugin that's literally just here to spill the tea about encoding π
okay bestie, pull up a chair π this is a page from the User Contributed Perl Documentation collection, and it's about a lil' plugin that does almost nothing and yet is lowkey iconic for it. iykyk. β¨
β¨ NAME β¨
Tempate::Plugin::encoding β Template plugin to specify encoding
and yes, the NAME section really does sayTempateand notTemplateπ«Ά i am simply reporting what's on the page, bestie, no cap, i do not make the rules π
πΈ SYNOPSIS πΈ
[% USE encoding 'euc-jp' -%]
<?xml version="1.0" encoding="[% encoding %]"?>
look at her. two lines. serving exactly what she needs to serve. queen behaviour fr fr π
π¦ DESCRIPTION π¦
Template::Plugin::encoding is a Template plugin whose whole entire job is to declare the encoding of template files. that's the vibe check it passes. π
but here's the plot twist: this plugin doesn't actually do anything π β nope, not a single thing, she's just standing there looking pretty. the real main character is Template::Provider::Encoding, which scans the usage of this module to find the encoding of templates. so like, the plugin is the little note you leave on the fridge and the Provider is the parent who actually reads it. it's giving delegation. it's giving teamwork. i'm obsessed. π
and as a bonus π (we love a bonus), you can use the encoding variable in the template itself to specify file encoding β which might come in handy for an XML or HTML meta tag. β¨ so yeah, mostly decorative, occasionally useful, always serving looks. π
π AUTHOR π
Tatsuhiko Miyagawa <miyagawa@bulknews.net> β say thank you to the icon who wrote this π«Ά π
and the legal bit, in full, no skipping: this library is free software β you can redistribute it and/or modify it under the same terms as Perl itself. π periodt.
π SEE ALSO π
Template::Provider::Encodingβ the one who actually does the work, the Provider to this plugin's little note π¦
and that's the whole page, bestie, we ate and left no crumbs β this gem was documented by way of perl v5.34.0, dated 2022-06-17, and lives at Templa...coding(3pm) in the manual pages π bye ily, go declare your encodings ππ§
π¦ where this page comes from
- debian bookworm: libtemplate-provider-encoding-perl 0.10-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libtemplate-provider-encoding-perl 0.10-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libtemplate-provider-encoding-perl 0.10-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libtemplate-provider-encoding-perl 0.10-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libtemplate-provider-encoding-perl 0.10-4 Β· 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