Quick Reference

Template File Syntax

template

   template template-nameparameter1parameter2... ) @
           template-body

expression

   expression @

if

   if ( boolean-expression ) @
           if-body
[  else @
           else-body  ]
   end if @

loop

   loop variable : count-expression @
           loop-body
   end loop @

include

   include template-pathargument1argument2... ) @

Calling from Java

include net.sourceforge.templat.Templat;

Templat tat = new Templat( template-file-URL );

Appendable result = new StringBuilder();
tat.render(result, argument1, argument2, ... );
Valid XHTML 1.1