Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
91 lines (77 sloc) 2.29 KB
This file is a part of Clack package.
Copyright (c) 2011 Eitarow Fukamachi <>
Clack is freely distributable under the LLGPL License.
(clack.util:namespace clack
(:use :cl
(:import-from :clack.component
(:import-from :clack.middleware
(:import-from :clack.handler
(:import-from :clack.util
(:export :stop
(cl-syntax:use-syntax :annot)
@doc "
Easy way to run Clack Application.
You can specify backend server with passing `:server'. The default is `:hunchentoot'.
(clackup (lambda (env)
(declare (ignore env))
'(200 nil (\"ok\")))
:port 5000
:debug t)
(defun clackup (app &key (server :hunchentoot) (port 5000) (debug t))
(let ((handler-package (find-handler server)))
(make-instance '<handler>
:server-name server
(funcall (intern (string '#:run) handler-package)
:port port
:debug debug)))
(format t "~&~:(~A~) server is started.~
~%Listening on localhost:~A.~%" server port)))
@doc:NAME "
Clack main package just for convenience.
(clackup (lambda (env)
(declare (ignore env))
'(200 nil (\"Hello, Clack!\")))
:port 5000
:debug t)
Contrary to your expectations, this package is not so significant. Just exporting symbols imported from Clack.Component and Clack.Middleware.
To avoid confusion, especially for beginner, why this package is. Most of peaple expect that there is a package that has the same as asdf:system.
Worthy of special mention is `clackup'. It provides easy way to run Clack Applications.
@doc:AUTHOR "
* Eitarow Fukamachi (
@doc:SEE "
* Clack.Component
* Clack.Middleware
Something went wrong with that request. Please try again.