Пример #1
0
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)
Пример #2
0
 def show_file(filename):
     ui_file.file(view, filename)