Template engine for Java programs