Package com.fizzed.rocker
Class Rocker
- java.lang.Object
-
- com.fizzed.rocker.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 BindableRockerModeltemplate(java.lang.String templatePath)Creates a template at runtime with properties that can be set (bindable) dynamically at runtime via Java reflection.static BindableRockerModeltemplate(java.lang.String templatePath, java.lang.Object... arguments)
-
-
-
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)
-
-