Class MacroAttributeProvider
- java.lang.Object
-
- io.pebbletemplates.pebble.template.MacroAttributeProvider
-
public class MacroAttributeProvider extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private PebbleTemplateImpl
template
-
Constructor Summary
Constructors Constructor Description MacroAttributeProvider(PebbleTemplateImpl template)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
macro(EvaluationContextImpl context, java.lang.String macroName, ArgumentsNode args, boolean ignoreOverriden, int lineNumber)
Invokes a macro
-
-
-
Field Detail
-
template
private final PebbleTemplateImpl template
-
-
Constructor Detail
-
MacroAttributeProvider
public MacroAttributeProvider(PebbleTemplateImpl template)
-
-
Method Detail
-
macro
public java.lang.Object macro(EvaluationContextImpl context, java.lang.String macroName, ArgumentsNode args, boolean ignoreOverriden, int lineNumber)
Invokes a macro- Parameters:
context
- The evaluation contextmacroName
- The name of the macroargs
- The argumentsignoreOverriden
- Whether or not to ignore macro definitions in child template- Returns:
- The results of the macro invocation
-
-