XSLATE(1p)
π XSLATE(1p) β like, the manual page but make it cute π
Hiii bestie, welcome to XSLATE(1p), from the User Contributed Perl Documentation corner of the universe. Today's topic: xslate, the script that processes Xslate templates. Not me being obsessed with a template engine but here we are. β¨
πΈ NAME πΈ
xslate β Process Xslate Templates
π USAGE π
Okay so here's the whole vibe, copy-paste ready and everything:
# process paths
$ xslate [options...] target
-a --cache Cache level
-t --type Output content type (html | xml | text)
-E --engine Template engine
-D --define Define template variables (e.g. foo=bar)
-I --path Include paths
--version Print version information
--oe --output_encoding Output encoding (default: UTF-8)
-M --module Modules templates will use (e.g. name=sub1,sub2)
-e --eval One line of template code
-s --syntax Template syntax (e.g. TTerse)
-d --debug Debugging flags
-x --suffix Output suffix mapping (e.g. tx=html)
--ie --input_encoding Input encoding (default: UTF-8)
-i --ignore Regular expression the process will ignore
-c --cache_dir Directory the cache files will be saved in
-o --dest Destination directory
-w --verbose Warning level (default: 2)
# one liners, with $ARGV and $ENV
xslate -e 'Hello, <: $ARGV[0] :> world!' Xslate
# => Hello, Xslate world!
xslate -MDigest::MD5=md5_hex -e '<: md5_hex($ARGV[0]) :>' 'foo bar'
# => 327b6f07435811239bc47e1544353273
β¨ the options, one by one, no skipping (periodt) β¨
-a,--cacheβ cache level. slay responsibly.-t,--typeβ the output content type. your choices are literallyhtml,xml, ortext.-E,--engineβ the template engine.-D,--defineβ define template variables, likefoo=bar.-I,--pathβ include paths.--versionβ prints version information, for when you need to know what you're working with.--oe,--output_encodingβ output encoding, and the default isUTF-8π-M,--moduleβ modules the templates will use, e.g.name=sub1,sub2.-e,--evalβ one line of template code. one liner queen. π-s,--syntaxβ template syntax, e.g.TTerse.-d,--debugβ debugging flags.-x,--suffixβ output suffix mapping, e.g.tx=html.--ie,--input_encodingβ input encoding, and yup, the default is alsoUTF-8π-i,--ignoreβ a regular expression that the process will ignore. ghosting, but on purpose.-c,--cache_dirβ the directory where the cache files get saved.-o,--destβ destination directory.-w,--verboseβ warning level, default is2.
π¦ DESCRIPTION π¦
The xslate script is used to process entire directory trees containing template files, or to process one liners. it's giving versatile. it's giving "I do both and I do them well". π
π ARGUMENTS π
target
Specifies the target to be processed by Xslate.
If the target is a file, the file is processed, and xslate will exit immediately. If the target is a directory, then the directory is traversed and each file found is processed via xslate.
π AUTHOR π
Maki, Daisuke (lestrrat)
Fuji, Goro (gfx)
π SEE ALSO π
Text::Xslate
okay that's the whole page bestie, you ate that π
this was XSLATE(1p) and it came from perl v5.42.3, dated 2026-08-22 β mwah, byeee π«Άπβ¨
π¦ where this page comes from
- ubuntu stonking: libtext-xslate-perl 3.5.9-2build2 Β· 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