@register.tag
def opengraph_meta(parser, token):
    try:
        tag_name, properties = token.split_contents()
    except __HOLE__:
        raise template.TemplateSyntaxError(
            "%r tag requires two arguments" % token.contents.split()[0]
        )
    properties = string_to_dict(properties[1:-1])
    return OpenGraphNode(properties)
dataset/ETHPy150Open saippuakauppias/django-simple-open-graph/simple_open_graph/templatetags/simple_open_graph.py/opengraph_meta