Skip to content

tomoyuki28jp/web4r

Repository files navigation

About

web4r is a continuations-based web application framework written in Common Lisp. The goal of web4r is enabling users to develop web applications with the shortest codes. (The shortness is about a number of tokens.)

The "Hello World" Application:

(require :web4r)
(use-package :web4r)

(defpage hello (:get (name "world"))
  [p "Hello, " name])

(start-server)

; wget http://localhost:8080/hello => '<p>Hello, world</p>'
; wget http://localhost:8080/hello?name=tomo => '<p>Hello, tomo</p>'

Arc Challenge:

(defpage said ()
  (form/cont (a/cont [p "You said: " (last-post "foo")] "click here")
   (input-text "foo")))

Blog Application:

(ele:open-store *example-bdb*)

(defpclass blog ()
  ((title :length 50 :index t)
   (body  :length 3000)))

(genpages blog)

Documentation

Download
Install
Tutorial
API Documentation

Note: These documents are included under the web4r/docs directory

About

A common lisp web application framework

Resources

Stars

Watchers

Forks

Packages

No packages published