from renderer import render


def render_template(text: str, **params):
    return render(text, **params)


def render_file(filename: str, **params):
    with open(filename, "r") as f:
        text = f.read()
        return render_template(text)


def render_file_to(filename: str, out_file: str, **params):
    with open(filename, "r") as f:
        text = f.read()
        rendered = render_template(text)
    with open(out_file, "w") as fw:
        fw.write(rendered)

c76fb0c6feabf9674abcd1eabbacb76b3fbe6879
<mask token>


def render_template(text: str, **params):
    return render(text, **params)


<mask token>

<mask token>


def render_template(text: str, **params):
    return render(text, **params)


def render_file(filename: str, **params):
    with open(filename, 'r') as f:
        text = f.read()
        return render_template(text)


<mask token>

<mask token>


def render_template(text: str, **params):
    return render(text, **params)


def render_file(filename: str, **params):
    with open(filename, 'r') as f:
        text = f.read()
        return render_template(text)


def render_file_to(filename: str, out_file: str, **params):
    with open(filename, 'r') as f:
        text = f.read()
        rendered = render_template(text)
    with open(out_file, 'w') as fw:
        fw.write(rendered)

from renderer import render


def render_template(text: str, **params):
    return render(text, **params)


def render_file(filename: str, **params):
    with open(filename, 'r') as f:
        text = f.read()
        return render_template(text)


def render_file_to(filename: str, out_file: str, **params):
    with open(filename, 'r') as f:
        text = f.read()
        rendered = render_template(text)
    with open(out_file, 'w') as fw:
        fw.write(rendered)

from renderer import render


def render_template(text: str, **params):
    return render(text, **params)


def render_file(filename: str, **params):
    with open(filename, "r") as f:
        text = f.read()
        return render_template(text)


def render_file_to(filename: str, out_file: str, **params):
    with open(filename, "r") as f:
        text = f.read()
        rendered = render_template(text)
    with open(out_file, "w") as fw:
        fw.write(rendered)
