def main(sys_argv=sys.argv):
    template, context = parse_args(sys_argv, USAGE)

    if template.endswith('.mustache'):
        template = template[:-9]

    renderer = Renderer()

    try:
        template = renderer.load_template(template)
    except TemplateNotFoundError:
        pass

    try:
        context = json.load(open(context))
    except __HOLE__:
        context = json.loads(context)

    rendered = renderer.render(template, context)
    print rendered
dataset/ETHPy150Open defunkt/pystache/pystache/commands/render.py/main