/usr/bin/xslate is in libtext-xslate-perl 3.4.0-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | #!/usr/bin/perl
use strict;
use Text::Xslate::Runner;
my $app = Text::Xslate::Runner->new_from(@ARGV);
$app->run( $app->targets );
__END__
=head1 NAME
xslate - Process Xslate Templates
=head1 USAGE
# 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
=head1 DESCRIPTION
The C<xslate> script is used to process entire directory trees containing
template files, or to process one liners.
=head1 ARGUMENTS
=head2 target
Specifies the target to be processed by Xslate.
If the target is a file, the file is processed, and C<xslate> will exit immediately. If the target is a directory, then the directory is traversed and each file found is processed via C<xslate>.
=head1 AUTHOR
Maki, Daisuke (lestrrat)
Fuji, Goro (gfx)
=head1 SEE ALSO
L<Text::Xslate>
=cut
|