Home | News | Wiki | About StringTemplate | Feedback | Support | Bugs


Latest version is 3.2.
Download now! »

Download
Terence Parr What is StringTemplate?
StringTemplate is a java template engine (with ports for C# and Python) for generating source code, web pages, emails, or any other formatted text output. StringTemplate is particularly good at multi-targeted code generators, multiple site skins, and internationalization/localization. It evolved over years of effort developing jGuru.com. StringTemplate also generates this website and powers the ANTLR v3 code generator. Its distinguishing characteristic is that it strictly enforces model-view separation unlike other engines. Strict separation makes websites and code generators more flexible and maintainable; it also provides an excellent defense against malicious template authors. There are currently about 600 StringTemplate source downloads a month.

Terence Parr is the maniac behind both StringTemplate and ANTLR. He is a professor of computer science at the University of San Francisco.

More...

Testimonials

ANTLR and StringTemplate are good ways of doing things. Terence has created...
Christian Schladetsch

After some years of using ANTLR and StringTemplate, I find these set of...
Gevik Babakhani

We use StringTemplate as our presentation engine for our rapid code development...
Bediako George

We use StringTemplate in lots of the project here in the company. The ...
e4s3

More...

Showcase
StringTemplate ViewEngine for ASP.Net MVC
Jamison Morrow Fri Feb 13, 2009 11:47
ViewEngine that utilizes ST for the ASP.Net MVC Framework.

Apache Camel string-template: component
Terence Parr Mon Jan 26, 2009 17:02
Looks like Camel has a wrapper for the Java ST implementation.

Export .NET Data Table (or IEnumerable) to PDF, Word , Excel, CSV or HTML
Ignat Andrei Tue Jul 1, 2008 12:45
By using StringTemplate in C# I have realized to export a DataTable ( usually...

More...


Search


News
StringTemplate 3.2 released
Terence Parr Wed Jun 11, 2008 02:56
A bug fix release with a few small improvements.

ST C# 3.1 beta available
Kunle Odutola and Michael Jordan Tue Mar 4, 2008 12:38
C# 3.1 beta; just code updated; not unit tests nor doc/readme.

PyStringTemplate-3.1 released!
Benjamin Niemann Mon Feb 18, 2008 12:16
Benjamin Niemann (pink at odahoda dot de) updated Python implementation...

StringTemplate 3.1 final release (java)
Terence Parr Wed Jan 23, 2008 18:37
ST 3.1 is finally final, at least for Java. C# and Python releases are...

More...
File Sharing
st to struts adapter
harry.karadimas@hmn.aphp.fr Mon Dec 15, 2008 05:31
A set of objects that enables st to be used as a view

STST - StringTemplate Standalone Tool
John Snyders Sun Dec 30, 2007 13:20
StringTemplate Standalone Tool (STST) is a command line utility for processing...

ST syntax coloring in jEdit
Harry Karadimas Mon Oct 15, 2007 17:36
I have added syntax coloring in the jEdit editor for ST html templates...

JPublish - Open Source Web Publishing
Florin Patrascu Sat Oct 13, 2007 08:41
JPublish is a Java web publishing framework which can use StringTemplate...

More...
Documentation
StringTemplate main documentation

StringTemplate 3.2 release notes

StringTemplate course notes

API

Bugs

Changes

Mailing List Messages
Subject: fixed if-condition thing
Zenaan Harkness Sat, 4 Jul 2009 00:40:12 +1000

Subject: separator: a fix or breaking backward
John D. Mitchell Thu, 2 Jul 2009 19:15:38 -0700

Subject: fixed if-condition thing
Terence Parr Thu, 2 Jul 2009 15:17:32 -0700

Subject: fixed if-condition thing
Terence Parr Thu, 2 Jul 2009 14:15:21 -0700

More...
Articles
Using StringTemplate as the view engine for your Spring MVC application
Nick Carroll Thu Jun 18, 2009 11:19
You can use StringTemplate to generate your views in Spring MVC quite ...

Using StringTemplate with J2EE
Richard Barabe Mon Mar 9, 2009 22:52
Here is a brief example of using StringTemplate in a j2ee environment....

Which Java MVC frameworks integrate easily with StringTemplate?
submitted by Terence Fri Feb 20, 2009 09:00
A few code snippets showing ST use with Spring.

Using StringTemplate as a ViewEngine for ASP.Net MVC
Jamison Morrow Sun Feb 15, 2009 18:02
An article describing the basics of using StringTemplate as a View Engine...

More...