def autoescape(parser, token):
    args = token.contents.split()
    if len(args) != 2:
        raise TemplateSyntaxError("'Autoescape' tag requires exactly one argument.")
    arg = args[1]
    if arg not in (u'on', u'off'):
        raise TemplateSyntaxError("'Autoescape' argument should be 'on' or 'off'")
    nodelist = parser.parse(('endautoescape',))
    parser.delete_first_token()
    return AutoEscapeControlNode((arg == 'on'), nodelist)
Return a new date with new values for the specified fields.
dataset/ETHPy150Open dcramer/django-compositepks/django/template/defaulttags.py/autoescape--crossover with--dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/datetime.py/date.replace