all repos — py-vite @ c6f9e0b4ef84e82b6e0c6aa63608a5f683b23ffa

the original vite, written in python

docs: update example site
icyphox icyph0x@protonmail.com
Sat, 17 Mar 2018 15:12:57 +0530
commit

c6f9e0b4ef84e82b6e0c6aa63608a5f683b23ffa

parent

4d50778cee5739c457864d2b08e3106c07936664

6 files changed, 5 insertions(+), 27 deletions(-)

jump to
M example/make.pyexample/make.py

@@ -1,15 +1,1 @@

-from markdown2 import markdown_path -from glob import glob -import os - -# constants -PAGES_PATH = 'pages/' -BUILD_PATH = 'build/' - -for filename in os.listdir(PAGES_PATH): - html = markdown_path(PAGES_PATH + filename) - 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)) - +/home/icyphox/code/vite/make.py
D example/pages/build_me.md

@@ -1,2 +0,0 @@

-## Build me senpai! -run `vite.py build example`
D example/pages/example_post.md

@@ -1,10 +0,0 @@

-# Welcome to Vite - -## Vite is awesome! -il est très vite! (i'm not sure if that's correct grammar) - -## It just works! -just write your content in markdown, build it, et voilà! (too much french) - -## Try it yourself -there's another `.md` file waiting to be built :)
A example/pages/test.md

@@ -0,0 +1,1 @@

+## test
A example/templates/template.html

@@ -0,0 +1,3 @@

+<body> + {{ body }} +</body>