X-Git-Url: http://git.kpe.io/?p=kmrcl.git;a=blobdiff_plain;f=web-utils-aserve.lisp;fp=web-utils-aserve.lisp;h=74a518a308aee40c5f42f20f67575e68234a7c82;hp=f6b9c75be9bf85915fa1c26c8f85a936b8c3aa0d;hb=bb23129ae7ddabcbcb09c718545f69a52a8d1eaf;hpb=fd834629ba860f91bda943a94a363a650079dff8 diff --git a/web-utils-aserve.lisp b/web-utils-aserve.lisp index f6b9c75..74a518a 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.5 2002/10/16 17:37:18 kevin Exp $ ;;;; ;;;; This file, part of KMRCL, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; @@ -84,10 +85,12 @@ (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))))) @@ -104,7 +107,7 @@ ,@body) (princ-http ""))) -(defmacro with-trans-page (title &rest body) +(defmacro with-html-page ((title &key css) &rest body) `(prog1 (progn (print-http "") @@ -112,7 +115,7 @@ (print-http " \"http://www.w3c.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">") (print-http "") (print-http "") - (head ,title) + (head ,title :css ,css) (print-http "") (prog1 ,@body