From 0634d16d8bb121fb7f5a9cb27c221d37c277e6bb Mon Sep 17 00:00:00 2001 From: Fernando Borretti Date: Sun, 14 Jun 2015 20:55:23 -0300 Subject: [PATCH] Add a hello world example --- examples/hello-world/app.lisp | 12 ++++++++++++ lucerne-hello-world.asd | 9 +++++++++ 2 files changed, 21 insertions(+) create mode 100644 examples/hello-world/app.lisp create mode 100644 lucerne-hello-world.asd diff --git a/examples/hello-world/app.lisp b/examples/hello-world/app.lisp new file mode 100644 index 0000000..9f59901 --- /dev/null +++ b/examples/hello-world/app.lisp @@ -0,0 +1,12 @@ +(in-package :cl-user) +(defpackage lucerne-hello-world + (:use :cl :lucerne) + (:export :app)) +(in-package :lucerne-hello-world) +(annot:enable-annot-syntax) + +(defapp app) + +@route app "/" +(defview hello () + (respond "Hello, world!")) diff --git a/lucerne-hello-world.asd b/lucerne-hello-world.asd new file mode 100644 index 0000000..e148b28 --- /dev/null +++ b/lucerne-hello-world.asd @@ -0,0 +1,9 @@ +(asdf:defsystem lucerne-hello-world + :version "0.1" + :author "Fernando Borretti" + :license "MIT" + :depends-on (:lucerne) + :components ((:module "examples/hello-world" + :components + ((:file "app")))) + :description "The simplest Lucerne app.")