X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=web-utils-aserve.lisp;h=9261cddc4198d149d8e67c26b4c47b33e90b765e;hb=30c2e8bd2c7043d845024395e19b3030d039eae2;hp=f6b9c75be9bf85915fa1c26c8f85a936b8c3aa0d;hpb=30b4f8d91af2bb031e8d4ef7d5a38492739de2bf;p=kmrcl.git diff --git a/web-utils-aserve.lisp b/web-utils-aserve.lisp index f6b9c75..9261cdd 100644 --- a/web-utils-aserve.lisp +++ b/web-utils-aserve.lisp @@ -1,3 +1,4 @@ + ;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*- ;;;; ************************************************************************* ;;;; FILE IDENTIFICATION @@ -7,7 +8,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Apr 2000 ;;;; -;;;; $Id: web-utils-aserve.lisp,v 1.4 2002/10/10 16:23:48 kevin Exp $ +;;;; $Id: web-utils-aserve.lisp,v 1.8 2002/10/16 23:34:33 kevin Exp $ ;;;; ;;;; This file, part of KMRCL, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; @@ -84,40 +85,50 @@ (princ-http "Browser Home")) (princ-http "
")) -(defun head (title-str) +(defun head (title-str &key css) + (unless css + (setq css "http://b9.com/main.css")) (net.html.generator:html - (:head - "" + (:head + (princ-http (format nil "" css)) (:title (:princ-safe title-str))))) ;;; Page wrappers -(defmacro with-xml-page (title &rest body) - `(prog1 - (progn - (net.html.generator:html - (princ-http (std-xml-header)) - (princ-http "