code: public static String compile(String path, String templateName, Map<String, Object> input) {
  		try {
  			Template template = getConfig(path).getTemplate(templateName);
  			StringWriter writer = new StringWriter();
  			template.process(input, writer);
  			return writer.toString();
  		} catch (Exception e) {
  			JK.throww(e);
  			return null;
  		}
  
  	}
docs: Compile.
  
  @param templateName the template name
  @param string
  @param input        the input
  @return the string