all repos — py-vite @ 2742e329085f5cad70a53ad7e77e4b36ddb677ee

the original vite, written in python

refactor(make.py): better filename
icyphox icyph0x@protonmail.com
Fri, 16 Mar 2018 11:33:27 +0530
commit

2742e329085f5cad70a53ad7e77e4b36ddb677ee

parent

87bac542781916c5a95011bc25631f10a9fa5a1d

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M make.pymake.py

@@ -8,6 +8,8 @@ BUILD_PATH = 'build/'

for filename in os.listdir(PAGES_PATH): html = markdown_path(PAGES_PATH + filename) - with open(BUILD_PATH + filename + '.html', 'w') as f: + html_file = os.path.splitext(filename)[0] + '.html' + with open(BUILD_PATH + html_file, 'w') as f: f.write(html) + print('Rendered %s.' % (html_file))