Javatempt is a template engine for Java that features an easy-to-learn template language. Templates are specified in a single file and are organized in terms of blocks and placeholders. Blocks may be recursive. A parser converts the template into a Java program for faster execution. Javatempt is ideal for code generation tasks or as a replacement to JSP.
Phptempt is a template engine for PHP and Java. Templates are precompiled and then included to the script/Java program as a PHP script/Java program. Templates are organized in blocks and placeholders, all placed in one single file. Blocks may be recursive. A version of the engine is available that is optimized for Java and particularly useful for the creation of code generators of any kind.