TemplAT is a general-purpose text-file template engine, designed to be used as an API from Java applications or servlets. It is small (39K) and simple, yet surprisingly powerful. It does not have any external library dependencies.
This software is distributed under the Apache License 2.0.


The TemplAT language is very simple to learn. It contains only the most basic programming constructs: if-then-else, loop, and include (with parameters). It also allows calling Java methods and accessing Java arrays. That's all there is to it. And yet, these few simple tools provide a powerful templating language.


The TemplAT class library consists of a 39K jar file. And that's it. It is designed to contain only what is necessary to provide its simple language, and nothing more. It is self-contained, and does not rely on any other external libraries.


TemplAT can be used for generating HTML pages by a Java servlet for a web server. It could just as easily be used for generating Java, C++, or SQL source code. It is useful for any text file where you need some kind of programming ability (loops, if-then-else, includes, method calls).


The TemplAT source code's correctness is backed by a comprehensive suite of JUnit tests. This ensures that each new release will add features and improvements while preventing regression. It allows for the developers to refactor code and improve its internal state without introducing new bugs. The internal structure of the code is clean, simple, and straightforward.
Valid XHTML 1.1