Interface IElementModelProcessor

    • Method Detail

      • process

        void process​(ITemplateContext context,
                     IModel model,
                     IElementModelStructureHandler structureHandler)

        Execute the processor.

        The IModel object represents the section of template (a fragment) on which the processor is executing, and can be directly modified. Instructions to be given to the template engine such as local variable creation, inlining etc. should be done via the IElementModelStructureHandler handler.

        Parameters:
        context - the execution context.
        model - the model this processor is executing on.
        structureHandler - the handler that will centralise modifications and commands to the engine.