hy/eg/appengine/main.hy

8 lines
193 B
Hy
Raw Normal View History

2013-10-31 19:56:48 +01:00
(require hy.contrib.meth)
(import [flask [Flask redirect]])
(def app (Flask __name__))
(route hello "/<name>" [name] (.format "(hello \"{0}!\")" name))
(route root "/" [] (redirect "/hyne"))