Class RockerTemplate

java.lang.Object
com.fizzed.rocker.RockerTemplate
Direct Known Subclasses:
DefaultRockerTemplate

public abstract class RockerTemplate extends Object
  • Constructor Details

    • RockerTemplate

      public RockerTemplate(RockerModel model)
      Create a new RockerTemplate for the model.
      Parameters:
      model - The model to create the template with
  • Method Details

    • __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 String toString()
      Overrides:
      toString in class Object