- SimpleTemplate
SimpleTemplate is a Java-based template engine. Compared to JSP, its main advantage is the clear separationof page code (most often
HTML ) and java code.Hello World
The following template:
processed by SimpleTemplate and the following java code:
will produce the following text:
Note that this example is very simple. The power of a good templateengine will manifest itself as soon as more complex operations, such asiterative Sections are used. See [http://fgerlach.com/NewsgroupPosting.txt this] example to appreciate the usefulness of SimpleTemplate.
External links
* [http://fgerlach.com/SimpleTemplate.tar.gz SimpleTemplate]
Wikimedia Foundation. 2010.