def gen_template(view, node, name, template, replacements): filename = os.path.join(node.dir, name + '.js') engine.template_run(filename, template, replacements) show_file.file(view, filename)
def show_file(filename): ui_file.file(view, filename)