コード例 #1
0
ファイル: helpers.py プロジェクト: przerull/Clay
def create_page(name, content, encoding='utf8'):
    sp = get_source_path(name)
    make_dirs(dirname(sp))
    content = content.encode(encoding)
    create_file(sp, content, encoding=encoding)
コード例 #2
0
ファイル: helpers.py プロジェクト: TuxCoder/Clay
def setup_function(f=None):
    make_dirs(SOURCE_DIR)
    make_dirs(BUILD_DIR)
コード例 #3
0
ファイル: helpers.py プロジェクト: alexander-ae/Clay
def setup_function(f=None):
    make_dirs(SOURCE_DIR)
    make_dirs(BUILD_DIR)
コード例 #4
0
ファイル: helpers.py プロジェクト: TuxCoder/Clay
def create_page(name, content, encoding='utf8'):
    sp = get_source_path(name)
    make_dirs(dirname(sp))
    content = content
    create_file(sp, content, encoding=encoding)