Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
77 lines (50 sloc) 2.12 KB

Clack - Web Application Environment for Common Lisp

Build Status Coverage Status Quicklisp dist

Clack is a web application environment for Common Lisp inspired by Python's WSGI and Ruby's Rack.


(defvar *handler*
      (lambda (env)
        (declare (ignore env))
        '(200 (:content-type "text/plain") ("Hello, Clack!")))))

Open your web browser and go to http://localhost:5000/. You should get "Hello, Clack!".

To stop the server, use (clack:stop *handler*).

Command-line interface

Clack provides a script to start a web server. It's useful when you deploy to production environment.

NOTE: Install Roswell before as it depends on it.

When you execute ros install clack, it copies clackup script to $HOME/.roswell/bin. Make sure the path is in your shell $PATH.

$ ros install clack
$ which clackup

$ cat <<EOF >> app.lisp
(lambda (env)
  (declare (ignore env))
  '(200 (:content-type "text/plain") ("Hello, Clack!")))
$ clackup app.lisp
Hunchentoot server is started.
Listening on localhost:5000.


(ql:quickload :clack)



See Also

  • Lack: Clack application builder



Copyright (c) 2011-2015 Eitaro Fukamachi & contributors


Licensed under the LLGPL License.

Jump to Line
Something went wrong with that request. Please try again.