Package com.fizzed.rocker
Class Rocker
java.lang.Object
com.fizzed.rocker.Rocker
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static String[]getModelArgumentNames(String templatePath, RockerModel model) static BindableRockerModelCreates a template at runtime with properties that can be set (bindable) dynamically at runtime via Java reflection.static BindableRockerModel
-
Constructor Details
-
Rocker
public Rocker()
-
-
Method Details
-
template
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
-
getModelArgumentNames
-