Package com.fizzed.rocker
Class RockerTemplate
java.lang.Object
com.fizzed.rocker.RockerTemplate
- Direct Known Subclasses:
DefaultRockerTemplate
-
Constructor Summary
ConstructorsConstructorDescriptionRockerTemplate(RockerModel model) Create a new RockerTemplate for the model. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void__associate(RockerTemplate template) Associates this template for processing within the context of another template.protected abstract RockerOutputCreates a new RockerOutput that the template will render to.toString()
-
Constructor Details
-
RockerTemplate
Create a new RockerTemplate for the model.- Parameters:
model- The model to create the template with
-
-
Method Details
-
__associate
Associates this template for processing within the context of another template. This happens when TemplateA calls/includes TemplateB. TemplateB needs to share variables from TemplateA before itself is rendered.- Parameters:
template- The template calling this template during a render
-
__newOutput
Creates a new RockerOutput that the template will render to.- Returns:
- A new RockerOutput
-
toString
-