Moved the 'add appointment' Psycopg2 examples to .callproc()

Moved the Flask container to Hy.  It works.  It works so well it deserves
a blog entry.
This commit is contained in:
Elf M. Sternberg 2016-02-08 08:01:47 -08:00
parent ebf56ae7c1
commit dd91a3cb85
1 changed files with 8 additions and 0 deletions

8
main.hy Normal file
View File

@ -0,0 +1,8 @@
#!/usr/local/bin/hy
(import [flask [Flask]])
(def app (Flask __name__))
(def hello ((.route app "/") (fn [] "Hello World")))
(if (= __name__ "__main__")
(.run app))