X-Git-Url: http://git.kpe.io/?p=lml2.git;a=blobdiff_plain;f=base.lisp;h=ee6598eb231bbd57e3a36311f90e788b939f27d7;hp=655ba80f961288d6b781bbdd5e9c372ae56d5cc4;hb=0f37aaf4b8b559025d0ea7f38754d04712fd5541;hpb=da71af518bcc9ed8513bf5c54a220b2d8a02a326 diff --git a/base.lisp b/base.lisp index 655ba80..ee6598e 100644 --- a/base.lisp +++ b/base.lisp @@ -7,28 +7,21 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Aug 2002 ;;;; -;;;; $Id: base.lisp,v 1.5 2003/06/24 17:48:41 kevin Exp $ +;;;; $Id: base.lisp,v 1.7 2003/07/12 17:54:05 kevin Exp $ ;;;; -;;;; This file, part of LML, is Copyright (c) 2002 by Kevin M. Rosenberg +;;;; This file, part of LML2, is Copyright (c) 2000-2003 by Kevin Rosenberg. +;;;; Rights of modification and redistribution are in the LICENSE file. ;;;; -;;;; LML users are granted the rights to distribute and use this software -;;;; as governed by the terms of the GNU General Public License v2 -;;;; (http://www.gnu.org/licenses/gpl.html) ;;;; ************************************************************************* (in-package #:lml2) -(defun reset-indent () - (setq *indent* 0)) - (defun lml-format (str &rest args) (when (streamp *html-stream*) - (when *print-spaces* (indent-spaces *indent* *html-stream*)) (if args (apply #'format *html-stream* str args) - (write-string str *html-stream*)) - (when *print-spaces* (write-char #\newline *html-stream*)))) + (write-string str *html-stream*)))) (defun lml-princ (s) (princ s *html-stream*)) @@ -64,8 +57,8 @@ (lml-write-char #\newline)) -(defmacro page ((out-file &key (format :xhtml11)) - &body body) +(defmacro html-file-page ((out-file &key (format :xhtml11)) + &body body) `(with-open-file (*html-stream* (lml-file-name ,out-file :output) :direction :output @@ -74,7 +67,6 @@ (html ((:html :xmlns "http://www.w3.org/1999/xhtml") ,@body)))) - (defmacro alink (url desc)