public class Rocker extends Object
| Constructor and Description |
|---|
Rocker() |
| Modifier and Type | Method and Description |
|---|---|
static BindableRockerModel |
template(String templatePath)
Creates a template at runtime with properties that can be set (bindable)
dynamically at runtime via Java reflection.
|
static BindableRockerModel |
template(String templatePath,
Object... arguments) |
public static BindableRockerModel template(String templatePath)
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.public static BindableRockerModel template(String templatePath, Object... arguments)
Copyright © 2016–2020 Fizzed, Inc. All rights reserved.