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


Latest version is 3.1.
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. 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

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

I'm a big fan of StringTemplate and Antlr and have used both on a couple...
Shane Witbeck

The decision to use Antlr and StringTemplate for Oracles next generation...
Dermot O'Neill, Oracle Senior Software E...

Terence is awesome. He thinks of everything I need, and whenever I need...
Sohail Somani

More...

Showcase
HStringTemplate -- An Elegant, Functional, Nifty Templating Engine for Haskell
Sterling Clover Fri Jan 25, 2008 10:29
HStringTemplate is a port of Terence Parręs lovely StringTemplate engine...

Erlang template engine inspired by StringTemplate
filippo.pacini Fri Jan 25, 2008 10:26
sgte is an Erlang template Engine for generating structured output (code,...

SpeakRight Framework uses StringTemplate
Sun Jan 13, 2008 14:23
SpeakRight uses StringTemplate (ST) for all its VoiceXML generation. A...

More...


Search


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

StringTemplate 3.1b1 available
Terence Parr Mon Aug 6, 2007 15:27
An interim release; working towards a 3.1 sometime soon.

More...
File Sharing
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...

pageforge: example ST-based sites
Terence Parr Fri Jul 7, 2006 14:26
PageForge contains the essence of what I learned building jGuru.com. It...

More...
Documentation
StringTemplate main documentation

StringTemplate 3.1 release notes

StringTemplate course notes

API

Bugs

Changes

Mailing List Messages
Subject: Grid Problems
Terence Parr Tue, 6 May 2008 10:27:37 -0700

Subject: Stringtemplate ANTLR 3
Terence Parr Sat, 3 May 2008 14:38:41 -0700

Subject: Stringtemplate ANTLR 3
Rabea Gransberger Sat, 03 May 2008 23:07:42 +0200

Subject: Grid Problems
Bob Sat, 03 May 2008 15:04:11 -0400

More...
Articles
The Importance of Model-View Separation (a conversation with Terence Parr)
Bill Venners Fri Mar 21, 2008 08:56
In this interview with Artima, Terence Parr, creator of the StringTemplate...

Script injection and StringTemplate
John Snyders Fri Feb 15, 2008 19:13
Some thoughts on rendering in StringTemplate. What can be done to protect...

Setting up ANTLR/ST for use with Matlab
L & D Engineering LLC Sun Dec 2, 2007 11:11


Refactoring your Templates
Sander Hahn Sat Oct 13, 2007 08:55
Chronicles Sander's use of ST.

More...