StringTemplate 3.0 Printable Documentation

StringTemplate 3.0 Printable Documentation

Credits for StringTemplate

Terence Parr
University of San Francisco
TerenceP
Copyright 2003-2008
http://www.stringtemplate.org
(BSD license)

C# version created by Kunle Odutola
Former user (Deleted)
Copyright 2005-2007
(ST# - C# StringTemplate released under BSD License)

Python version created by Marq Kole
marq DOT kole AT xs4all DOT nl
Updated to V3.1 by Benjamin Niemann
pink AT odahoda DOT de
Copyright 2003-2008

Users' Guide Table of Contents

  • See "About this document" below, for important details on the origin of this content, tips on printing etc.

  • Readers' comments are omitted! This "printable" page is composed from the individual topic pages. There may be readers' comments on those pages, which are not incorporated in this composite page.

  • If you landed on this page first: See also the comprehensive Documentation Map


1. Introduction


2. StringTemplate cheat sheet


3. Defining Templates


4. Setting the expression delimiters


5. Group Files


6. Group interfaces


7. Template inheritance


8. Template regions


9. Conditionally included subtemplates


10. Expressions


11. Object rendering


12. Expression options


13. Auto-indentation


14. Automatic line wrapping


15. Output Filters


16. Template and attribute lookup rules


17. StringTemplate Grammars


18. Debugging


19. Python Notes


20. Acknowledgements


About This Document

  • Origin of this document: To ensure freshness, the contents of this page are automatically assembled (when you request this page) from the individual articles listed in the "Individual topic pages" box in the Table of Contents.

    • The "Individual topic pages" part of the TOC is included from a master TOC page, so is somewhat authoritative. However, the "Combined on this page" part of the TOC, and the selection of article "include"s are both maintained manually, so could get out of step if articles are added, renamed etc. You can at least see whether the two TOCs are in step by visual comparison.

  • Readers' Comments: Some of the constituent articles have have accumulated some reader comments. These are not included into this composite page. (So use the individual-topic TOC to get there.)

  • Printing tip: You can print using the plain old browser Print function, possibly after viewing Print Preview. However, you might be better served with a PDF:

    • Double-sided: Acrobat allows odd/even print passes.

    • The wiki has an "Export to PDF" command on the Tools menu - but it's a bit of a work-in-progress, so inspect the PDF before firing up the printer.

    • I (GW) had good luck from FireFox 3 (Windows) using Print to the Adobe PDF driver (supplied by Acrobat). This formatted with reduced font size, thus fewer pages.