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


Latest version is 3.2.1.
Download now! »

Download
Terence Parr What is StringTemplate?
StringTemplate is a java template engine (with ports for C#, Python, Ruby, and Scala) 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. See the Five minute introduction.

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
MySQL
submitted by Terence Parr Thu Jul 29, 2010 15:09


Yahoo! Query Language
Submitted by Terence Tue Aug 25, 2009 18:32
Yahoo! uses ANTLR for its query language. The Yahoo! Query Language is...

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

More...


Search


News
Initial Scala port
Brian Clapper Wed Apr 7, 2010 12:26
An initial version of a Scala wrapper for StringTemplate.

StringTemplate v4 early access
Terence Parr Wed Jan 13, 2010 11:10
I think it works but need some more people to test.

StringTemplate 3.2.1 (Java) released
Terence Parr Fri Sep 25, 2009 15:35
Bug fix release mostly.

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

More...
File Sharing
struts2 support for StringTemplate
Ran Tavory Sat Nov 7, 2009 13:22
struts2 support for StringTemplate if anyone is interested. It's still...

http://code.google.com/p/webfabric/
Daniel Worthington-Bodart Mon Sep 28, 2009 14:30
Just thought I'd let you know of a couple of extensions I have created...

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...

More...
Documentation
StringTemplate main documentation

StringTemplate 3.2.1 release notes

StringTemplate course notes

API

source/changelogs at github

Bugs

Changes

Mailing List Messages
Subject: ST4 - Newlines in parameter default
Udo Borkowski Sun, 25 Jul 2010 10:19:40 +0200

Subject: C# indexer - no attribute in template
Dustin A. Lambert Fri, 23 Jul 2010 22:54:55 -0400

Subject: C# indexer - no attribute in template
Tomasz Mloduchowski Fri, 23 Jul 2010 16:25:42 +0000

Subject: Latest C# Binaries/Source
Natan Sat, 03 Jul 2010 14:53:37 -0300

More...
Articles
ST Part 4:Generating a Builder Class using StringTemplate
Collin Fagan Sun Jun 13, 2010 15:12


ST Part 3: Complex Data Types and Renderers
Collin Fagan Tue Jun 8, 2010 11:39


ST: Collections and Template Groups
Collin Fagan Thu Jun 3, 2010 11:41


An introduction to StringTemplate
Collin Fagan Thu Jun 3, 2010 11:40
A quick introduction to ST generating SQL.

More...