X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;ds=sidebyside;f=demo.lisp;h=d91d1e3a3d5bedf84d5e40d2fb16695ea4f0a223;hb=020591a159bfb3b732b857b20de5be2b3ad17057;hp=87c0aac00a473e58d67ce4d3e6afed2d144e1785;hpb=89ac090253571f870a5afd45559d7aa28ba1b152;p=cl-modlisp.git diff --git a/demo.lisp b/demo.lisp index 87c0aac..d91d1e3 100644 --- a/demo.lisp +++ b/demo.lisp @@ -7,37 +7,37 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Dec 2002 ;;;; -;;;; $Id: demo.lisp,v 1.1 2003/07/05 00:59:49 kevin Exp $ +;;;; $Id$ ;;;; ************************************************************************* (in-package #:modlisp) -(defun demo-apache-command-processor (command) - "Sample function to process an apache command" - (let ((url (header-value command "url"))) +(defun demo-modlisp-command-processor (command) + "Sample function to process an modlisp command" + (let ((url (header-value command :url))) (cond ((equal url "/fixed.lsp") (output-html-page (fixed-html-string))) ((equal url "/precompute.lsp") (with-ml-page (:precompute t) - (write-precomputed-page))) + (write-precomputed-page))) (t (with-ml-page (:precompute nil) - (write-debug-table command)))))) + (write-debug-table command)))))) (defun write-debug-table (command) (write-string "
-Key | Value |
---|---|
~a | ~a |