Scalable template engine for Perl5
Perl XS C Other
Latest commit 3466b56 Apr 20, 2016 @syohex syohex Merge pull request #163 from xslate/fix-160
Fix #160 PR
Failed to load latest commit information.
author Correct spelling errors detected by the lintian tool on Debian Mar 27, 2016
benchmark s/Any::Moose/Mouse/g Jul 11, 2013
example Documentation update Aug 1, 2014
lib/Text Updated patch for github issue #88 "Latin 1 text could end up as malf… Apr 20, 2016
script Updated patch for github issue #88 "Latin 1 text could end up as malf… Apr 20, 2016
src Updated patch for github issue #88 "Latin 1 text could end up as malf… Apr 20, 2016
t Updated patch for github issue #88 "Latin 1 text could end up as malf… Apr 20, 2016
tool Fix disasm.pl Aug 30, 2011
xt
.gitignore add MANIFEST to the repo Oct 7, 2013
.proverc Add .proverc Nov 9, 2011
.shipit Update .shipit May 2, 2010
.travis.yml Add 5.22 for CI Nov 22, 2015
Changes Bump up version and update Changes Dec 18, 2015
HACKING Add a note about XSLATE=pp=verbose Feb 5, 2011
MANIFEST Updated patch for github issue #88 "Latin 1 text could end up as malf… Apr 20, 2016
MANIFEST.SKIP Ignore MYMETA.json Jul 11, 2011
Makefile.PL Specify File::Path version for remove_tree function Aug 28, 2015
README.md Update github links to https. Correct issues URL where necessary. Mar 27, 2016
uri_unsafe.h
xslate.h add merge_hash opcode Oct 24, 2012

README.md

NAME Build Status

Text::Xslate - Scalable template engine for Perl5

SYNOPSIS

use Text::Xslate;

my $tx = Text::Xslate->new();

my %vars = (
    title => 'A list of books',
    books => [
        { title => 'Islands in the stream' },
        { title => 'Programming Perl'      },
        # ...
    ],
);

my $template = q{
<h1><: $title :></h1>
<ul>
: for $books -> $book {
    <li><: $book.title :></li>
: } # for
</ul>
};

print $tx->render_string($template, \%vars);

INSTALLATION

Install cpanm (App::cpanminus) and then run the following command to install Xslate:

$ cpanm Text::Xslate

If you get the distribution, unpack it and build it as per the usual:

$ tar xzf Text-Xslate-{version}.tar.gz
$ cd Text-Xslate-{version}
$ perl Makefile.PL
$ make && make test

Then install it:

$ make install

If you want to install it from the repository, you must install authoring tools.

$ cpanm < author/requires.cpanm

DOCUMENTATION

Text::Xslate documentation is available as in POD. So you can do:

$ perldoc Text::Xslate

to read the documentation online with your favorite pager.

RESOURCE

web site:       http://xslate.org/
repositories:   https://github.com/xslate
issue tracking: https://github.com/xslate/p5-Text-Xslate/issues

LICENSE AND COPYRIGHT

Copyright (c) 2010, Fuji, Goro (gfx). All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

MAINTAINERS