Example #1
0
 public static void main(String[] args) {
   String template =
       "@args java.util.List<String> users, String title, String name; @each String u: users @u @ title: @title name: @name ";
   List<String> l = new ArrayList<String>();
   l.add("green");
   l.add("cherry");
   ITemplate t = engine.getTemplate(template);
   t.setRenderArg("users", l);
   t.setRenderArg(2, "Green");
   t.setRenderArg(1, "Mr.");
   System.out.println(t.render());
 }
Example #2
0
 public static String renderString(String template, Object... args) {
   return engine.renderString(template, args);
 }
Example #3
0
 public boolean isProdMode() {
   return engine.isProdMode();
 }
Example #4
0
 public static String render(File file, Object... args) {
   return engine.render(file, args);
 }
Example #5
0
 public static void clearTemplateClassEnhancer() {
   engine.clearTemplateClassEnhancer();
 }
Example #6
0
 public static boolean registerTag(ITag tag) {
   return engine.registerTag(tag);
 }
Example #7
0
 public static void clearListener() {
   engine.clearListener();
 }
Example #8
0
 public static void unregisterTemplateClassEnhancer(ITemplateClassEnhancer enhancer) {
   engine.unregisterTemplateClassEnhancer(enhancer);
 }
Example #9
0
 public static void unregisterListener(IRythmListener listener) {
   engine.unregisterListener(listener);
 }
Example #10
0
 public static void init() {
   engine.init();
 }
Example #11
0
 public static void init(Properties conf) {
   engine.init(conf);
 }
Example #12
0
 public static ExtensionManager getExtensionManager() {
   return engine.getExtensionManager();
 }
Example #13
0
 // --- SPI interfaces ---
 public static DialectManager getDialectManager() {
   return engine.getDialectManager();
 }