Class Rocker


  • public class Rocker
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Rocker()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static java.lang.String[] getModelArgumentNames​(java.lang.String templatePath, RockerModel model)  
      static BindableRockerModel template​(java.lang.String templatePath)
      Creates a template at runtime with properties that can be set (bindable) dynamically at runtime via Java reflection.
      static BindableRockerModel template​(java.lang.String templatePath, java.lang.Object... arguments)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Rocker

        public Rocker()
    • Method Detail

      • template

        public static BindableRockerModel template​(java.lang.String templatePath)
        Creates a template at runtime with properties that can be set (bindable) dynamically at runtime via Java reflection.
        Parameters:
        templatePath - The path to the template such as "views/app/index.rocker.html". The value is converted to a Java package name such as "views.app.index" which is then loaded from the classpath. If hot reloading is turned on then the template is checked if it needs (re)compiled as well.
        Returns:
        A template model with bindable properties.
      • template

        public static BindableRockerModel template​(java.lang.String templatePath,
                                                   java.lang.Object... arguments)
      • getModelArgumentNames

        private static java.lang.String[] getModelArgumentNames​(java.lang.String templatePath,
                                                                RockerModel model)