def METHOD_NAME(html):
    result = [
        'load("@io_bazel_rules_closure//closure:defs.bzl", "web_library")',
        "",
        "web_library(",
        '    name = "%s",' % FLAGS.repo,
        '    path = "%s",' % os.path.dirname(FLAGS.path),
        "    srcs = [",
        '        "%s",' % os.path.basename(FLAGS.path),
        '        ":files",',
        "    ],",
        ")",
        "",
        "genrule(",
        '    name = "html",',
        '    outs = ["%s"],' % os.path.basename(FLAGS.path),
        '    cmd = "\\n".join([',
        "        \"cat <<'EOF' >$@\",",
    ]
    add_inline_file(result, html)
    result.append('        "EOF",')
    result.append("    ]),")
    result.append(")")
    return result