Created
October 27, 2012 18:47
-
-
Save joekarma/3965651 to your computer and use it in GitHub Desktop.
Hello World in RESTAS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (restas:define-module :hello-world-app | |
| (:use :cl :cl-who)) | |
| (in-package :hello-world-app) | |
| (restas:define-route index ("/") | |
| (with-html-output-to-string (s) | |
| (:html | |
| (:head | |
| (:title "Hello World!")) | |
| (:body | |
| (:h1 "Hello, World!"))))) | |
| (restas:start :hello-world-app | |
| :port 8080 | |
| :hostname "localhost") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment