XSLATE(1)
XSLATE(1) π
okay bestie, welcome to xslate β it's a User Contributed Perl Documentation page and it's literally the cutest little template-processing script you'll ever meet. sit down, grab a strawberry π, and let's get into it.
β¨ NAME β¨
xslate β Process Xslate Templates π¦
πΈ USAGE πΈ
here's the whole vibe, bestie. options first, then the receipts:
# 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)
and now the one-liners, where $ARGV and $ENV are doing their little main character thing β¨:
# 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
like?? 327b6f07435811239bc47e1544353273?? that's a hash bestie, that's iconic π
π DESCRIPTION π
so the xslate script has two whole jobs and she eats at both of them:
- she processes entire directory trees full of template files π³
- she processes one-liners π
that's it. that's the whole plot. no cap.
π ARGUMENTS π
π target
this is the thing you're pointing xslate at. she needs to know what to chew on.
- if target is a file β the file gets processed, and
xslatebounces. exits immediately. bye bestie π - if target is a directory β she goes on a little walk πΆββοΈπ¨, traverses the whole directory, and every single file she finds gets processed via
xslate.
fr fr, directory mode means she's touching each file found. that's the deal. π«Ά
π AUTHOR π
- Maki, Daisuke (lestrrat)
- Fuji, Goro (gfx)
absolute legends, we stan π§β¨
β SEE ALSO β
Text::Xslateβ go read it, it's the whole lore iykyk π
okay that's the page!! πΈ this was perl v5.42.0, dated 2025-07-25, and it's XSLATE(1) β periodt π
ππ¦
π¦ where this page comes from
- fedora 43: perl-Text-Xslate 3.5.9-14.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms