passEnvironment function
Pass the Environment as the first argument to the applied function when called while rendering a template.
Can be used on functions, filters, and tests.
Implementation
Function passEnvironment(Function function) {
PassArgument.types[function] = PassArgument.environment;
return function;
}