@register.tag
def render_as_template(parser, token):
    bits = token.split_contents()
    if len(bits) !=2:
        raise TemplateSyntaxError(bits[0] % "'%s' takes only one argument (a variable representing a template to render)")
    return RenderAsTemplateNode(bits[1])
dataset/ETHPy150Open baskoopmans/djcommon/djcommon/templatetags/common.py/render_as_template/swapped operands of `%`