StringTemplate 3 Documentation
Credits for StringTemplate
Terence Parr |
C# version created by Kunle Odutola |
Python version created by Marq Kole |
Documentation Map
The focus of this page is to provide a comprehensive and well-organized map of StringTemplate documentation on this wiki, plus pointers to other complementary documentation on stringtemplate.org, and elsewhere.
- Up to: StringTemplate 3 Wiki Home
- StringTemplate 3.0 Users' Guide as single page (printable)
StringTemplate 3.0 Users' Guide individual topic pages:
- Introductory Topics
- Defining Templates
- Setting the expression delimiters
- Template Groups and subtemplates
- Expressions and object rendering
- Automatic formatting
- Template and attribute lookup rules
- StringTemplate Grammars
- Debugging
- Language-specific notes
- Acknowledgements
- Complementary documents:
- StringTemplate FAQ
- Prior Versions
- On stringtemplate.org and elsewhere
- API, javadocs StringTemplate API documentation
- Bugs
- Changes
- Contributed articles
- Course Notes (TP at USF)
Related material
Principles
- It is highly recommended that you read the (academically-oriented) paper, Enforcing Model-View Separation in Template Engines.
- DRAFT A Functional Language For Generating Structured Text
- Internationalization and Localization of Web Applications In Action
- Language Translation Using ANTLR and StringTemplate
- Intelligent Web Site Page Generation
- The Role of Template Engines in Code Generation
Alerts to Developers
- The
StringTemplates
distribution includes many unit tests that also represent a useful set of examples. The tests are defined in:Java
TestStringTemplate.java
C#
TestStringTemplate.cs
Python
TestStringTemplate.py
- Please see the Release Notes, changes, and Bugs page
- These pages generally discuss the Java version of StringTemplate but, some of the information they contain might apply to other implementations.