jinja/defs.bzl
def json_data(name, **kwargs):
    """ Create a json data file that can be used with jinja.

    Args:
        name: name of the rule, will be the name of the json file.
        **kwargs: Any keyword arguments will be interpreted as data and
            written to the json file
    """

    data_encoded = json.encode_indent(kwargs)

    write_file(
        name = name,
        out = "%s.json" % name,
        content = [data_encoded],
        newline = "unix",
    )
 Create a json data file that can be used with jinja.

    Args:
        name: name of the rule, will be the name of the json file.
        **kwargs: Any keyword arguments will be interpreted as data and
            written to the json file
    
Create a json data file that can be used with jinja.
Create a json data file that can be used with jinja .
def json_data(name, **kwargs):
    data_encoded = json.encode_indent(kwargs)
    write_file(
        name = name,
        out = "%s.json" % name,
        content = [data_encoded],
        newline = "unix",
    )
def json_data ( name , ** kwargs ) : data_encoded = json . encode_indent ( kwargs ) write_file ( name = name , out = "%s.json" % name , content = [ data_encoded ] , newline = "unix" , )
Create a json data file that can be used with jinja.
Create a json data file that can be used with jinja .
""" Create a json data file that can be used with jinja.

    Args:
        name: name of the rule, will be the name of the json file.
        **kwargs: Any keyword arguments will be interpreted as data and
            written to the json file
    """
name
name of the rule, will be the name of the json file.
name of the rule will be the name of the json file .
**kwargs
Any keyword arguments will be interpreted as data and
written to the json file
Any keyword arguments will be interpreted as data and written to the json file