Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Web application environment for Common Lisp
Failed to load latest commit information.
bin Allow app-file to be anywhere in args of clackup, not only at the fir…
src Allow string as :output for Clack.Middleware.Backtrace.
t Delete clack.logger & clack.middleware.logger. Use other logger libra…
tmp forgot to add "tmp" directory, using clack.test.suite.
.gitignore Fix JSON middleware to recognize Content-Type that specifies a charse…
.travis.yml Stop using the latest XSubseq on Travis CI.
README.markdown Add build status. (for master branch)
clack-handler-fcgi.asd Don't require multi-thread feature in Clack.Handlers.
clack-handler-hunchentoot.asd Bump version of handlers.
clack-handler-toot.asd Don't require multi-thread feature in Clack.Handlers.
clack-handler-wookie.asd Fix compatibility of Clack.Handler.Wookie with the latest Wookie. It …
clack-middleware-auth-basic.asd Delete the dependency of clack-middleware-auth-basic on split-sequence.
clack-middleware-clsql.asd Drop 'w' from my name.
clack-middleware-csrf.asd Fix clack.middleware.csrf to be compatible to v1.0.
clack-middleware-dbi.asd Drop 'w' from my name.
clack-middleware-oauth.asd Remove the depencency on anaphora.
clack-middleware-postmodern.asd New middleware clack.middleware.postmodern
clack-middleware-rucksack.asd Drop 'w' from my name.
clack-session-store-dbi.asd Add Clack.Session.Store.Dbi (contrib).
clack-test.asd Replace cl-test-more by prove.
clack.asd Bump the version to v1.1.0.
t-clack-handler-fcgi.asd Replace cl-test-more by prove.
t-clack-handler-hunchentoot.asd Replace cl-test-more by prove.
t-clack-handler-toot.asd Replace cl-test-more by prove.
t-clack-handler-wookie.asd fix t-clack-handler-wookie
t-clack-middleware-auth-basic.asd Replace cl-test-more by prove.
t-clack-middleware-csrf.asd Replace cl-test-more by prove.
t-clack.asd Delete clack.logger & clack.middleware.logger. Use other logger libra…

README.markdown

Clack - Web Application Environment for Common Lisp

Build Status

Clack is a web application environment for Common Lisp inspired by Python's WSGI and Ruby's Rack. Your awesome framework should base on this.

Usage

(defpackage simple-app
  (:use :cl
        :clack))
(in-package :simple-app)

(defvar *handler*
    (clackup
      #'(lambda (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*).

Installation

Clack is available on Quicklisp.

(ql:quickload :clack)

Documentation

Server

Middleware

Middleware is a type of Clack components, which modifies the behavior of a Clack application without modifing the Clack application's code.

Bundle Middleware

Contrib Middleware

Author

Copyright

Copyright (c) 2011-2014 Eitaro Fukamachi

Contributors

License

Licensed under the LLGPL License.

Something went wrong with that request. Please try again.