Class DefaultRockerTemplate

    • Constructor Detail

      • DefaultRockerTemplate

        public DefaultRockerTemplate​(RockerModel model)
    • Method Detail

      • __associate

        protected void __associate​(RockerTemplate context)
        Description copied from class: RockerTemplate
        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.
        Specified by:
        __associate in class RockerTemplate
        Parameters:
        context - The template calling this template during a render
      • __render

        public final RockerOutput __render​(DefaultRockerTemplate context,
                                           RockerOutputFactory outputFactory)
                                    throws RenderingException
        Executes template and renders content to output.
        Parameters:
        context - The optional context if this template is being rendered within another template
        outputFactory - Factory for creating output if necessary
        Returns:
        The output of rendering process
        Throws:
        RenderingException - Thrown if any error encountered while rendering template. Exception will include underlying cause as well as line and position of original template source that triggered exception.
      • raw

        public Raw raw​(java.lang.Object obj)
                throws java.io.IOException
        Throws:
        java.io.IOException
      • raw

        public Raw raw​(java.lang.String s)
                throws java.io.IOException
        Throws:
        java.io.IOException