initial commit

This commit is contained in:
ohbarye
2015-04-15 20:58:20 +09:00
commit 4439b2aa09
7 changed files with 1967 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
from bottle import route,run,template,static_file
from md_to_html import MarkdownConverter
from env import *
converter = MarkdownConverter()
@route('/<resource>')
def gfmize(resource):
html_file_name = converter.convert(resource)
return static_file(html_file_name, root=ms_root)
run(host=ms_host,port=ms_port,debug=ms_debug,reloader=ms_reloader)