Skip to content

Commit

Permalink
Add a hello world example
Browse files Browse the repository at this point in the history
  • Loading branch information
eudoxia0 committed Jun 14, 2015
1 parent ada6879 commit 0634d16
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
12 changes: 12 additions & 0 deletions 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!"))
9 changes: 9 additions & 0 deletions 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.")

0 comments on commit 0634d16

Please sign in to comment.