2013-03-10 05:15:22 +01:00
|
|
|
; Copyright (c) Paul R. Tagliamonte <tag@pault.ag>, 2013 under the terms of
|
|
|
|
; hy.
|
|
|
|
|
|
|
|
|
2013-03-10 04:45:08 +01:00
|
|
|
|
|
|
|
(import-from flask
|
2013-03-10 05:15:22 +01:00
|
|
|
Flask render-template)
|
|
|
|
|
2013-03-10 04:45:08 +01:00
|
|
|
|
|
|
|
(def app (Flask "__main__")) ; long story, needed hack
|
|
|
|
|
|
|
|
|
|
|
|
(route "/" [] (render-template "index.html"))
|
2013-03-10 15:30:03 +01:00
|
|
|
|
|
|
|
(post-route "/test" [] (render-template "index.html"))
|