Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

149 lines (135 sloc) 7.154 kB
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="keywords" content="Text::Xslate,Xslate,template engine,Perl,CPAN" />
<title>Xslate - Scalable template engine for Perl5</title>
<link rel="stylesheet" type="text/css" href="css/reset.css" />
<link rel="stylesheet" type="text/css" href="css/styles.css" />
<link rel="icon" type="image/png" href="img/xslate@32x32.png" />
</head>
<body>
<div class="wrapper">
<div class="header">
<h1 class="title"><img src="img/xslate.png" alt="Xslate" width="120" height="120" /><br />Xslate</h1>
<div class="description">
Scalable template engine for Perl5.
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=194389280616551&amp;xfbml=1"></script><fb:like href="http://xslate.org/" send="true" width="450" show_faces="true" font=""></fb:like>
</div>
</div>
<div id="content">
<div class="GraphContainer">
<a href="benchmark.html"><img width="388" height="313" src="img/benchmark_rich_env.png" /></a>
</div>
<div class="section">
<h2>What is Xslate?</h2>
<p>Xslate is a template engine for Perl5 with the following features:</p>
<ul>
<li>The fastest in CPAN - Up to <em>50~100 times</em> faster than TT2! (see <a href="benchmark.html">the benchmarks for more info</a>)</li>
<li>Support for multiple template syntaxes - TT2 compatible syntax, for example</li>
<li>Easy to enhance - by importing subroutines and/or by calling object methods</li>
<li>Safe - Escapes HTML meta characters by default</li>
<li>Debuggable - Readable error messages with correct line numbers</li>
</ul>
</div>
<div class="section clearfix">
<h2>Documentation</h2>
<ul>
<li><a href="http://search.cpan.org/dist/Text-Xslate/">Documents on CPAN</a></li>
<li><a href="http://search.cpan.org/perldoc?Text::Xslate::Manual::FAQ">FAQ</a></li>
<li><a href="http://search.cpan.org/perldoc?Text::Xslate::Manual::Cookbook">Cookbook</a></li>
</ul>
</div>
<div class="section clearfix">
<h2>Getting started</h2>
<p>Install <a href="http://search.cpan.org/perldoc?App::cpanminus#INSTALLATION">cpanminus</a> and then run the following command to install Xslate.</p>
<pre><code>$ cpanm Text::Xslate</code></pre>
</div>
<div class="section clearfix">
<h2>Introduction to Xslate</h2>
<p>See "<a href="intro.html">Quick introduction to Xslate</a>"</p>
</div>
<div class="section clearfix">
<h2>Template code</h2>
<pre><code>: # in Kolon, the default syntax
: for ["Xslate"] -&gt; $lang {
Hello, &lt;: $lang :&gt; world!
: }</code></pre>
<pre><code>[%# in TTerse, a TT2 compatible syntax -%]
[% FOR lang IN ["Xslate"] -%]
Hello, [% lang %] world!
[% END -%]</code></pre>
<pre><code>{* in Clevery, a Smarty compatible syntax *}
{foreach from=`["Xslate"]` item=lang}
Hello, {$lang} world!
{/foreach}</code></pre>
</div>
<div class="section clearfix">
<h2>What People Say</h2>
<ul>
<li>xslate++ # pretty fast - tokuhirom</li>
<li><a href="http://mt.endeworks.jp/d-6/2010/06/introducing-text-xslate.html">Introducing Text::Xslate</a> - lestrrat</li>
<li><a href="http://sao-paulo.pm.org/equinocio/2010/set/23">Xslate - Seu próximo sistema de templates</a> - Breno G. de Oliveira</h2>
</ul>
</div>
<div class="section clearfix">
<h2>Repositories</h2>
<ul>
<li><a href="http://github.com/xslate/p5-Text-Xslate">Text::Xslate</a> - Xslate template engine</li>
</ul>
</div>
<div class="section clearfix">
<h2>Distributions</h2>
<ul>
<li><a href="http://github.com/xslate/p5-Text-Clevery">Text::Clevery</a> - Smarty compatible syntax and functions</li>
<li><a href="http://github.com/xslate/p5-Text-Xslate-Bridge-Alloy">Text::Xslate::Bridge::Alloy</a> - Use Template::Alloy methods and filters</li>
<li><a href="http://github.com/xslate/p5-Text-Xslate-Bridge-TT2">Text::Xslate::Bridge::TT2</a> - Use TT2 methods and filters (uses TT2 runtime)</li>
<li><a href="http://github.com/lestrrat/Text-Xslate-Bridge-TT2Like">Text::Xslate::Bridge::TT2Like</a> - Use TT2 methods and filters (standalone)</li>
<li><a href="http://search.cpan.org/dist/Catalyst-View-Xslate/">Catalyst::View::Xslate</a> - Text::Xslate View Class</li>
<li><a href="http://search.cpan.org/dist/MojoX-Renderer-Xslate/">MojoX::Renderer::Xslate</a> - Text::Xslate renderer for Mojo</li>
<!--
<li><a href="http://search.cpan.org/dist/Dancer-Template-Xslate/">Dancer::Template::Xslate</a> - Text::Xslate wrapper for Dancer</li>
-->
<li><a href="http://search.cpan.org/dist/Tiffany/">Tiffany</a> - Generic interface for Perl5 template engines</li>
</ul>
</div>
<div class="section clearfix">
<h2>Related modules</h2>
<ul>
<li><a href="http://deps.cpantesters.org/depended-on-by.pl?dist=Text-Xslate">Modules that depend on Text::Xslate</a> (deps.cpantesters.org)</a>
</ul>
</div>
<div class="section clearfix">
<h2>Presentations</h2>
<ul>
<li><a href="http://www.slideshare.net/gorof/how-xslate-works">How Xslate works in YAPC::Asia Tokyo 2010 Day 2 (2010-10-16)</a></li>
<li><a href="http://gfx.github.com/osdc-tw-2010/main/#0">Xslate - High performance template engine in Perl/XS at OSDC.tw 2010-04-24</a></li>
<li><a href="http://www.slideshare.net/lestrrat/cpan-gems-from-the-far-east">CPAN gems from the far east</a></li>
</ul>
</div>
<div class="section clearfix">
<h2>Users of Xslate</h2>
<ul>
<li><a href="http://linecorp.com">LINE Corporation</a></li>
<li><a href="http://www.mobilefactory.jp/">Mobile Factory</a></li>
<li><a href="http://www.iinteractive.com/">Infinity Interactive, Inc</a></li>
<li><a href="http://dena.com">DeNA, Co., Ltd.</a></li>
<li><a href="http://www.hatena.ne.jp/">Hatena</a></li>
</ul>
</div>
<div class="section clearfix">
<h2>COMMUNITY</h2>
<ul>
<li><a href="irc://irc.perl.org/#xslate">#xslate on irc.perl.org</a></li>
<li><a href="http://groups.google.com/group/xslate?hl=en">Google Group (mailing list)</a></li>
<li><a href="https://github.com/xslate/xslate.github.com/wiki">Github wiki</a></li>
<li><a href="https://github.com/xslate">the Xslate project page</a></li>
</ul>
</div>
</div>
<div class="footer">
If you have requests for this web site, please send pull request on <a href="http://github.com/xslate/xslate.github.com">github</a>.
</div>
</div>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.