

def do_include(parser, token):
    '\n    Loads a template and renders it with the current context.\n\n    Example::\n\n        {% include "foo/some_include" %}\n    '
    bits = token.split_contents()
    if (len(bits) != 2):
        raise TemplateSyntaxError(('%r tag takes one argument: the name of the template to be included' % bits[0]))
    path = bits[1]
    if ((path[0] in ('"', "'")) and (path[(- 1)] == path[0])):
        return ConstantIncludeNode(path[1:(- 1)])
    return IncludeNode(bits[1])

dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/_internal/django/template/loader_tags.py do_include/original