-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
148 lines (135 loc) · 6.99 KB
/
index.html
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<!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/[email protected]" />
</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&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"] -> $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/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>