-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
235 lines (157 loc) · 8.22 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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
<!doctype html>
<!--[if lt IE 9]><html class="ie"><![endif]-->
<!--[if gte IE 9]><!--><html><!--<![endif]-->
<head>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>StringTemplate</title>
<!--[if lt IE 9]><script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<link rel="stylesheet" href="css/fontface/Droid-Sans/stylesheet.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/fontface/Droid-Serif/stylesheet.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/fontface/DejaVu-Sans-Mono/stylesheet.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/st.css" type="text/css" media="screen" />
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="scripts/selectivizr-min.js"></script>
<script src="scripts/cycle.js"></script>
<script src="scripts/rounded.js"></script>
<script src="scripts/watermark.js"></script>
<script type="text/javascript" src="scripts/lib/jquery.mousewheel-3.0.6.pack.js"></script>
<script type="text/javascript" src="scripts/source/jquery.fancybox.js?v=2.0.6"></script>
<link rel="stylesheet" type="text/css" href="scripts/source/jquery.fancybox.css?v=2.0.6" media="screen" />
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-1024344-2']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<header>
<a id="index" href="index.html">StringTemplate</a>
<nav>
<script src="scripts/topnav.js"></script>
</nav>
</header>
<div id="wrapper">
<div id="home"><!--this div provides the light background section on the homepage-->
<div id="container">
<div id="main">
<div class="col3" id="whatis">
<h2>What is StringTemplate?</h2>
<p><strong>StringTemplate</strong> is a java template engine (with
ports for <a href="https://github.com/antlr/antlrcs">C#</a>, <a href="https://github.com/muggins/ST4-ObjC2.0-Runtime">Objective-C</a>, <a href="https://github.com/jsnyders/StringTemplate-js">JavaScript</a>, <a href="http://software.clapper.org/scalasti/">Scala</a>) for generating source code, web
pages, emails, or any other formatted text output. StringTemplate is
particularly good at code generators, multiple site skins, and
internationalization / localization. StringTemplate
also powers <a href="http://www.antlr.org">ANTLR</a>.</p>
<div id="terence"><img src="images/terence.jpg" alt="terence" />
<strong>Terence Parr</strong> is the maniac behind ANTLR and has been
working on language tools since 1989. He is a professor of computer
science at the <a href="https://www.cs.usfca.edu/~parrt">University of San Francisco</a>.
</div>
</div><!--/col3-->
<div id="module">
<ul id="tabs">
<li id="tab-qs"><a href="javascript:void">Quick Start</a></li>
<li id="tab-sa"><a href="javascript:void">Samples</a></li>
</ul>
<h2 id="hd-sa">Samples</h2>
<h2 id="hd-qs">Quick Start</h2>
<div class="screen" id="quickstart">
<div class="slide">
OS X
<pre>
<span class="dollar">$</span> <span class="cmd">cd</span> /usr/local/lib
<span class="dollar">$</span> <span class="cmd">sudo curl</span> -O https://www.stringtemplate.org/download/ST-4.3.4.jar
<span class="dollar">$</span> <span class="cmd">export</span> <span class="equals">CLASSPATH=</span><span class="path">".:/usr/local/lib/ST-4.3.4.jar:$CLASSPATH"</span>
</pre>
</div>
<div class="slide">
Linux
<pre>
<span class="dollar">$</span> <span class="cmd">cd</span> /usr/local/lib
<span class="dollar">$</span> <span class="cmd">wget</span> https://stringtemplate.org/download/ST-4.3.4.jar
<span class="dollar">$</span> <span class="cmd">export</span> <span class="equals">CLASSPATH=</span><span class="path">".:/usr/local/lib/ST-4.3.4.jar:$CLASSPATH"</span>
</pre>
</div>
<div class="slide"><code>Windows</code></div>
</div><!--/screen-->
<div class="screen" id="samples">
<div class="slide">
<pre class="pre2">
import org.stringtemplate.v4.*;
...
ST hello = new ST("Hello, <name>!");
hello.add("name", "World");
String output = hello.render();
System.out.println(output);
</pre>
<pre class="pre2">
Hello, World!
</pre>
</div>
</div><!--/screen-->
<div id="pager-qs" class="pager"></div>
<div id="pager-sa" class="pager"></div>
</div><!--/module-->
</div><!--/main-->
<section><!--home only-->
<div class="col3" id="latest-news">
<h2>Latest News</h2>
<a class="twitter-timeline" href="https://twitter.com/the_antlr_guy" data-widget-id="373882077285871616">Tweets by @the_antlr_guy</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
<div class="dot-pager" id="pager-tw"></div>
</div><!--/col3-->
<div class="col3" id="testimonials">
<h2>Testimonials</h2>
<div id="tests">
<div class="testimonial">
The decision to use Antlr and StringTemplate for Oracles next generation Migration and SQL Developer features was easy due to the fantastic support on the forums, extensive documentation and great tools. In particular, the ability to parse trees and define target languages using StringTemplate, provided the end to end language translation technology we required.<b> Dermot O'Neill, Oracle Senior Software Engineer</b>
</div>
<div class="testimonial">
<a href="http://code.google.com/p/pgorm/"><b>StringTemplate is one of the coolest tools ever</b></a><br>
I find these set of tools to be one of my core tools when developing complex apps. This time, I have been using StringTemplate to develop another code generator for PostgreSQL and .NET. Terence you are great. <b>Gevik Babakhani</b><br>
</div>
<div class="testimonial">
<a href="http://code.google.com/p/hannibalcodegenerator/"><b>StringTemplate
is fantastic!</b></a><br> We use StringTemplate as our presentation
engine for our rapid code development tool Hannibal. <i>We chose
StringTemplate over other templating engines for its ease of use, its
versatility, and it disciplined approach to templating.</i> We use it to
generate code in multiple languages as well as to create XHTML and
HTML code for presentation purposes. <b>Bediako George</b><br>
</div>
<a href="testimonials.html">More...</a>
</div><!--/tests-->
<div class="dot-pager" id="pager-te"></div>
</div><!--/col3-->
<div class="col3" id="resources">
<h2>Resources</h2>
Using ST in with ANTLR? Check out the books:<br>
<a href="http://pragprog.com/book/tpantlr2/the-definitive-antlr-4-reference"><img src="images/tpantlr2.jpg"
width=110></a>
<a href="http://pragprog.com/book/tpdsl/language-implementation-patterns"><img src="images/tpdsl.jpg"
width=110></a>
<br><br><a href="https://github.com/antlr/stringtemplate4/blob/master/doc/introduction.md">Introduction to ST (v4)</a>
<br><br><a href="https://github.com/antlr/stringtemplate4/blob/master/doc/index.md">ST Documentation</a>
<br><br><a href="api/index.html">Runtime API v4</a> (<a href="api3/index.html">API v3</a>)
<br><br><a href="https://github.com/antlr/stringtemplate4">Browse source tree (github)</a>
<br><br><a href="https://github.com/antlr/stringtemplate4/blob/master/doc/faq/index.md">Frequently Asked Questions</a>
<br><br><a href="http://www.antlr.org">ANTLR Parser Generator</a>
</div><!--/col3-->
</section>
</div><!--/container-->
<div class="clear"><!--necessary nudge--></div>
</div><!--/home-->
</div><!--/wrapper-->
<footer>
<script src="scripts/bottomnav.js"></script>
</footer>
<script src="scripts/functions.js"></script>
</body>
</html>