From dd91a3cb85f8b5b3f20564c09eb69fb67ac54e5c Mon Sep 17 00:00:00 2001 From: "Elf M. Sternberg" Date: Mon, 8 Feb 2016 08:01:47 -0800 Subject: [PATCH] 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. --- main.hy | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 main.hy diff --git a/main.hy b/main.hy new file mode 100644 index 0000000..e73d1c0 --- /dev/null +++ b/main.hy @@ -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)) +