Catman...emplate(3pm)
π NAME π
Catman...emplate(3pm) β bestie, this is Catmandu::Fix::template, and it does exactly one iconic thing: it adds a value to the record based on a template. That's it. That's the whole gig. And it ate. π
β¨ SYNOPSIS β¨
Okay so imagine your record is looking like this, right:
# Your record contains:
#
# name: John
# age: 44
Then you hit it with this:
template(message,"Mr [%name%] is [%age%] years old")
And boom π₯ the result is:
# Result:
#
# name: John
# age: 44
# message: Mr John is 44 years old
Not me adding a whole new field with one line of Fix... the message key literally materialises out of the template, pulling name and age straight out of the record. Main character energy, fr fr. π¦
Lowkey important: notice there are two spaces in Mr John is 44 years old β the template keeps every character exactly as you typed it. No cap. π
πΈ SEE ALSO πΈ
Catmandu::Fixβ the whole Fix ecosystem this little cutie lives in π«ΆTemplateβ the template engine doing the actual heavy lifting behind the scenes β¨
And that's the vibe check, bestie. This page came to you courtesy of perl v5.36.0, dated 2022-09-27 β from the User Contributed Perl Documentation corner of the internet, with love. Go template something gorgeous. πππ§ββοΈ
π¦ where this page comes from
- ubuntu noble: libcatmandu-template-perl 0.14-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatmandu-template-perl 0.14-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatmandu-template-perl 0.14-1 Β· 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