Next: Introduction, Previous: (dir), Up: (dir) [Contents][Index]
This is the clack Reference Manual, version 2.0.0, generated automatically by Declt version 3.0 "Montgomery Scott" on Sun May 15 04:20:43 2022 GMT+0.
• Introduction | What clack is all about | |
• Systems | The systems documentation | |
• Modules | The modules documentation | |
• Files | The files documentation | |
• Packages | The packages documentation | |
• Definitions | The symbols documentation | |
• Indexes | Concepts, functions, variables and data types |
Clack is a web application environment for Common Lisp inspired by Python's WSGI and Ruby's Rack.
(defvar *handler*
(clack:clackup
(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*)
.
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
/Users/nitro_idiot/.roswell/bin/clackup
$ cat <<EOF >> app.lisp
(lambda (env)
(declare (ignore env))
'(200 (:content-type "text/plain") ("Hello, Clack!")))
EOF
$ clackup app.lisp
Hunchentoot server is started.
Listening on localhost:5000.
(ql:quickload :clack)
See CONTRIBUTING.md.
Copyright (c) 2011-2015 Eitaro Fukamachi & contributors
Licensed under the LLGPL License.
Next: Modules, Previous: Introduction, Up: Top [Contents][Index]
The main system appears first, followed by any subsystem dependency.
• The clack system |
Eitaro Fukamachi
LLGPL
Web application environment for Common Lisp
# Clack - Web Application Environment for Common Lisp
[](https://travis-ci.org/fukamachi/clack)
[](https://coveralls.io/r/fukamachi/clack)
[](http://quickdocs.org/clack/)
Clack is a web application environment for Common Lisp inspired by Python’s WSGI and Ruby’s Rack.
## Usage
“‘common-lisp
(defvar *handler*
(clack:clackup
(lambda (env)
(declare (ignore env))
’(200 (:content-type "text/plain") ("Hello, Clack!")))))
“‘
Open your web browser and go to [http://localhost:5000/](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](https://github.com/snmsts/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
/Users/nitro_idiot/.roswell/bin/clackup
$ cat <<EOF >> app.lisp
(lambda (env)
(declare (ignore env))
’(200 (:content-type "text/plain") ("Hello, Clack!")))
EOF
$ clackup app.lisp
Hunchentoot server is started.
Listening on localhost:5000.
## Installation
“‘common-lisp
(ql:quickload :clack)
“‘
## Documentation
- [Quickdocs Page](http://quickdocs.org/clack/)
## Server
* [Hunchentoot](http://weitz.de/hunchentoot/)
* [FastCGI](http://www.fastcgi.com/)
* [Wookie](http://wookie.beeets.com/)
* [Toot](https://github.com/gigamonkey/toot)
* [Woo](https://github.com/fukamachi/woo)
## How to contribute
See [CONTRIBUTING.md](CONTRIBUTING.md).
## See Also
* [Lack](https://github.com/fukamachi/lack): Clack application builder
## Author
* Eitaro Fukamachi (e.arrows@gmail.com)
## Copyright
Copyright (c) 2011-2015 Eitaro Fukamachi & [contributors](https://github.com/fukamachi/clack/graphs/contributors)
## License
Licensed under the LLGPL License.
2.0.0
clack.asd (file)
src (module)
Modules are listed depth-first from the system components tree.
• The clack/src module |
clack (system)
src/
Files are sorted by type and then listed depth-first from the systems components trees.
• Lisp files |
• The clack.asd file | ||
• The clack/src/clack.lisp file | ||
• The clack/src/handler.lisp file | ||
• The clack/src/util.lisp file |
Next: The clack/src/clack․lisp file, Previous: Lisp files, Up: Lisp files [Contents][Index]
Next: The clack/src/handler․lisp file, Previous: The clack․asd file, Up: Lisp files [Contents][Index]
src (module)
src/clack.lisp
Next: The clack/src/util․lisp file, Previous: The clack/src/clack․lisp file, Up: Lisp files [Contents][Index]
util.lisp (file)
src (module)
src/handler.lisp
Previous: The clack/src/handler․lisp file, Up: Lisp files [Contents][Index]
src (module)
src/util.lisp
find-handler (function)
Next: Definitions, Previous: Files, Up: Top [Contents][Index]
Packages are listed by definition order.
• The clack-asd package | ||
• The clack package | ||
• The clack.handler package | ||
• The clack.util package |
Next: The clack package, Previous: Packages, Up: Packages [Contents][Index]
clack.asd
Next: The clack․handler package, Previous: The clack-asd package, Up: Packages [Contents][Index]
clack.lisp (file)
common-lisp
Next: The clack․util package, Previous: The clack package, Up: Packages [Contents][Index]
handler.lisp (file)
common-lisp
Previous: The clack․handler package, Up: Packages [Contents][Index]
util.lisp (file)
common-lisp
find-handler (function)
Definitions are sorted by export status, category, package, and then by lexicographic order.
• Exported definitions | ||
• Internal definitions |
Next: Internal definitions, Previous: Definitions, Up: Definitions [Contents][Index]
• Exported functions |
Previous: Exported definitions, Up: Exported definitions [Contents][Index]
clack.lisp (file)
Safer way to read and eval a file content. This function returns the last value.
clack.lisp (file)
util.lisp (file)
handler.lisp (file)
handler.lisp (file)
Previous: Exported definitions, Up: Definitions [Contents][Index]
• Internal special variables | ||
• Internal macros | ||
• Internal functions | ||
• Internal structures |
Next: Internal macros, Previous: Internal definitions, Up: Internal definitions [Contents][Index]
clack.lisp (file)
Next: Internal functions, Previous: Internal special variables, Up: Internal definitions [Contents][Index]
clack.lisp (file)
Next: Internal structures, Previous: Internal macros, Up: Internal definitions [Contents][Index]
clack.lisp (file)
handler.lisp (file)
handler.lisp (file)
handler.lisp (file)
handler.lisp (file)
handler.lisp (file)
Previous: Internal functions, Up: Internal definitions [Contents][Index]
handler.lisp (file)
structure-object (structure)
handler-server (function)
(setf handler-server) (function)
handler-acceptor (function)
(setf handler-acceptor) (function)
Previous: Definitions, Up: Top [Contents][Index]
• Concept index | ||
• Function index | ||
• Variable index | ||
• Data type index |
Next: Function index, Previous: Indexes, Up: Indexes [Contents][Index]
Jump to: | C F L M |
---|
Jump to: | C F L M |
---|
Next: Variable index, Previous: Concept index, Up: Indexes [Contents][Index]
Jump to: | %
(
C E F H M R S W |
---|
Jump to: | %
(
C E F H M R S W |
---|
Next: Data type index, Previous: Function index, Up: Indexes [Contents][Index]
Jump to: | *
A S |
---|
Jump to: | *
A S |
---|
Previous: Variable index, Up: Indexes [Contents][Index]
Jump to: | C H P S |
---|
Jump to: | C H P S |
---|