forked from xslate/xslate.github.com
/
index.html
144 lines (132 loc) · 6.97 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
<!DOCTYPE html>
<html lang="ja">
<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" />
</head>
<body>
<div class="wrapper">
<div class="header">
<h1 class="title"><img src="../img/xslate_logo.png" alt="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>Xslateとは</h2>
<p>XslateはPerl5用のテンプレートエンジンであり、次のような機能を持っています:</p>
<ul>
<li>CPAN最速 - Template::Toolkitより50〜100倍高速です</li>
<li>複数の構文をサポート - たとえば、TT2互換の構文があります</li>
<li>拡張が簡単 - テンプレート内でPerlのサブルーチンをつかったりオブジェクトメソッドを呼んだりできます</li>
<li>安全 - XSS防止のため自動的にHTMLメタキャラクタをエスケープします</li>
<li>デバッグが容易 - エラーメッセージに行番号やファイル名を表示します</li>
</ul>
</div>
<div class="section clearfix">
<h2>ドキュメント</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>Xslateを使うには</h2>
<p><a href="http://search.cpan.org/perldoc?App::cpanminus#INSTALLATION">cpanminus</a>をインストールして、つぎのコマンドを入力するだけです。</p>
<pre><code>$ cpanm Text::Xslate</code></pre>
</div>
<div class="section clearfix">
<h2>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://frepan.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 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/Index.ja">github wiki</a></li>
<li><a href="https://github.com/xslate">the Xslate project</a></li>
</ul>
</div>
</div>
<div class="footer">
このドキュメントのリポジトリは <a href="http://github.com/xslate/xslate.github.com">github</a> にあります。改善案やバグフィクスのpull-requestをお待ちしています。
</div>
</div>
</body>
</html>