Fork me on GitHub

MacroAttributeProvider

In package com.mitchellbosecke.pebble.template

public class MacroAttributeProvider extends Object

Constructors

Parameters:

Methods

public Object macro(EvaluationContextImpl context, String macroName, ArgumentsNode args, boolean ignoreOverriden, int lineNumber)

Invokes a macro

Parameters:
  • EvaluationContextImpl context

    The evaluation context

  • String macroName

    The name of the macro

  • ArgumentsNode args

    The arguments

  • boolean ignoreOverriden

    Whether or not to ignore macro definitions in child template

  • int lineNumber