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 literally html, xml, or text.
  • -E, --engine β€” the template engine.
  • -D, --define β€” define template variables, like foo=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 is UTF-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 also UTF-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 is 2.

πŸ¦‹ 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