passContext function

Function passContext(
  1. Function function
)

Pass the Context as the first argument to the applied function when called while rendering a template.

Can be used on functions, filters, and tests.

Implementation

Function passContext(Function function) {
  PassArgument.types[function] = PassArgument.context;
  return function;
}