Skip to content

Instantly share code, notes, and snippets.

@paulogeyer
Created February 13, 2013 19:55
Show Gist options
  • Save paulogeyer/4947622 to your computer and use it in GitHub Desktop.
Save paulogeyer/4947622 to your computer and use it in GitHub Desktop.
(define-route main ("" :method :get)
(with-html-output-to-string (out)
(:html
(:body
(:h1 (princ-safe "Le Reader"))))))
@lispegistus
Copy link

(restas:define-module #:restas-test
  (:use #:cl #:cl-who #:restas))

(in-package #:restas-test)

(define-route main ("" :method :get)
  (with-html-output-to-string (out)
    (:html
      (:body
        (:h1 "Le Reader")))))

(start '#:restas-test :port 8080)
;;; going to "localhost:8080" works for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment