def do_mustache(parser, token):
    """
    Loads a mustache template and render it inline
    
    Example::
    
    {% mustache "foo/bar" data %}
    
    """
    bits = token.split_contents()
    if len(bits) not in  [2,3]:
        raise template.TemplateSyntaxError("%r tag takes two arguments: the location of the template file, and the template context" % bits[0])
    path = bits[1]
    path = path[1:-1]
    attrs = bits[2:]
    return MustacheNode(path, *attrs)
dataset/ETHPy150Open open-cloud/xos/xos/core/xoslib/templatetags/mustache.py/do_mustache/original