XSLATE(1)

πŸ“¦
version 3.5.9 Β· 2 versions
, in fedora 43

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 xslate bounces. 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