Example #1
0
File: cli.py Project: derdon/swsg
def render(args):
    # the project's directory is the current working directory
    project = get_project_by_path(getcwd(), look_at_parent_dir=True)
    for output_path, output in project.render():
        with codecs.open(output_path, 'w', 'utf-8') as fp:
            fp.write(output)
Example #2
0
File: cli.py Project: derdon/swsg
def change_config(args):
    # the project's directory is the current working directory
    project = get_project_by_path(getcwd())
    project.update_config(
        markup_language=args.markup_language,
        template_language=args.template_language)