Class 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.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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:
        toString in class java.lang.Object