Class Rocker

java.lang.Object
com.fizzed.rocker.Rocker

public class Rocker extends Object
  • Constructor Details

    • Rocker

      public Rocker()
  • Method Details

    • template

      public static BindableRockerModel template(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(String templatePath, Object... arguments)
    • getModelArgumentNames

      private static String[] getModelArgumentNames(String templatePath, RockerModel model)