PageRenderTime 49ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/example/hello-world.lisp

http://github.com/archimag/restas
Lisp | 18 lines | 7 code | 5 blank | 6 comment | 0 complexity | 89190b391c5627d9798a5ca97feb619a MD5 | raw file
Possible License(s): LGPL-2.1
  1. ;;;; hello-world.lisp
  2. ;;;;
  3. ;;;; This file is part of the RESTAS library, released under Lisp-LGPL.
  4. ;;;; See file COPYING for details.
  5. ;;;;
  6. ;;;; Author: Moskvitin Andrey <archimag@gmail.com>
  7. (ql:quickload "restas")
  8. (restas:define-module #:restas.hello-world
  9. (:use #:cl))
  10. (in-package #:restas.hello-world)
  11. (restas:define-route main ("")
  12. "<h1>Hello world!</h1>")
  13. (restas:start '#:restas.hello-world :port 8080)