Advanced template engine for Java