forked from xslate/xslate.github.com
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
123 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>Xslate - The fastest 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" /> | ||
</head> | ||
<body> | ||
<div class="wrapper"> | ||
<div class="header"> | ||
<h1><script>var i = location.hash != "" ? parseInt(location.hash.substr(1)) : 0; document.write('<img src="http://yellowlab.dip.jp/xslate_logo_'+i+'.png" alt="Xslate" />');</script></h1> | ||
<div class="description"> | ||
The fastest template engine for Perl5. | ||
</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>Extremely fast - Up to <em>50~100 times</em> faster than TT2! (see <a href="benchmark.html">the benchmarks for more info</a>)</li> | ||
<li>Supports 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> | ||
</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"] -> $lang { | ||
Hello, <: $lang :> 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/gfx/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/gfx/p5-Text-Clevery">Text::Clevery</a> - Smarty compatible syntax and functions</li> | ||
<li><a href="http://github.com/gfx/p5-Text-Xslate-Bridge-Alloy">Text::Xslate::Bridge::Alloy</a> - Use Template::Alloy methods and filters</li> | ||
<li><a href="http://github.com/gfx/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>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> | ||
</ul> | ||
</div> | ||
|
||
<div class="section clearfix"> | ||
<h2>Users of Xslate</h2> | ||
<ul> | ||
<li><a href="http://frepan.64p.org/">FrePAN</a></li> | ||
<li><a href="http://www.livedoor.com">livedoor</a></li> | ||
<li><a href="http://www.mobilefactory.jp/">Mobile Factory</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> |