Package com.fizzed.rocker
Class RockerTemplate
- java.lang.Object
-
- com.fizzed.rocker.RockerTemplate
-
- Direct Known Subclasses:
DefaultRockerTemplate
public abstract class RockerTemplate extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description RockerTemplate(RockerModel model)Create a new RockerTemplate for the model.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void__associate(RockerTemplate template)Associates this template for processing within the context of another template.protected abstract RockerOutput__newOutput()Creates a new RockerOutput that the template will render to.java.lang.StringtoString()
-
-
-
Constructor Detail
-
RockerTemplate
public RockerTemplate(RockerModel model)
Create a new RockerTemplate for the model.- Parameters:
model- The model to create the template with
-
-
Method Detail
-
__associate
protected abstract void __associate(RockerTemplate template)
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
protected abstract RockerOutput __newOutput()
Creates a new RockerOutput that the template will render to.- Returns:
- A new RockerOutput
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-