4 ms·
Flask apps look so great with Hy : (import [flask [Flask]]) (def app (Flask __name__)) (with-decorator (app.route "/") (defn index []
by volent 12y ago
Flask apps look so great with Hy :
(import [flask [Flask]])
(def app (Flask __name__))
(with-decorator (app.route "/")
(defn index []
"Hello World !"))
(app.run)
I'm really looking forward using it in some side-projects.
- Foxboron 12y agoIt dosn't stop there. Why use the decorators directly when you can get Hy on Meth? https://github.com/hylang/hy/blob/master/hy/contrib/meth.hy https://github.com/hylang/hy/blob/master/hy/contrib/meth.hy
- rcarmo 12y agoHmmm. Cute. I can probably drop those straight into my Bottle stuff.