@register.tag
def render_layout(parser, token):
    try:
        tag_name, layout_slug = token.split_contents()
    except ValueError:
        raise template.TemplateSyntaxError(token.contents.split()[0] % "%r tag requires a single argument")
    if not (layout_slug[0] == layout_slug[-1] and layout_slug[0] in ('"', "'")):
        raise template.TemplateSyntaxError("%r tag's argument should be in quotes" % tag_name)
    if is_page_placeholder_html_id(layout_slug[1:-1]):
        raise template.TemplateSyntaxError("%r tag's argument shouldn't start with the value : '%s'" % (
                tag_name, settings.SLUG_CONTENT))
    return RenderLayoutNode(layout_slug[1:-1])

# page rendering
dataset/ETHPy150Open ionyse/ionyweb/ionyweb/website/templatetags/ionyweb_tags.py/render_layout/swapped operands of `%`