hy/eg/appengine/main.hy
2013-10-31 11:56:48 -07:00

8 lines
193 B
Hy

(require hy.contrib.meth)
(import [flask [Flask redirect]])
(def app (Flask __name__))
(route hello "/<name>" [name] (.format "(hello \"{0}!\")" name))
(route root "/" [] (redirect "/hyne"))