dj_angles.templatetags.call =========================== .. py:module:: dj_angles.templatetags.call Module Contents --------------- .. py:data:: logger .. py:function:: resolve(context, arg) Resolves a template variable based on the context if it's a `TemplateVariable`. Otherwise, evaluate the arg. :param param context: The template context. :param param arg: The variable to resolve. :returns: The resolved value of the variable. .. py:class:: CallNode(parsed_function, context_variable_name) Bases: :py:obj:`django.template.Node` .. py:attribute:: parsed_function .. py:attribute:: context_variable_name .. py:method:: resolve_args(context, portion) .. py:method:: resolve_kwargs(context, portion) .. py:method:: get_result(context, obj, portion) .. py:method:: render(context) Execute the function with the provided arguments and stores the results in context. .. py:function:: do_call(parser, token) -> CallNode Parses the token to get all the pieces needed to call the function. :param parser: The template parser. :param token: The token to parse. :returns: Handles running the function and storing the result in the context. :rtype: CallNode