;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Aug 2002
;;;;
-;;;; $Id: lml.cl,v 1.1 2002/09/16 01:13:49 kevin Exp $
+;;;; $Id: lml.cl,v 1.3 2002/09/16 08:10:11 kevin Exp $
;;;;
;;;; This file, part of LML, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
(declaim (optimize (debug 3) (speed 3) (safety 1) (compilation-speed 0)))
(in-package :lml)
-(defconstant +html4-prologue-string+
- (format nil
- "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML//EN\">~%"))
+(defconstant +html4-prologue-string+ "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML//EN\">"))
-(defconstant +xml-prologue-string+
- (format nil
- "<?xml version=\"1.0\" encoding=\"iso-8859-1\" standalone=\"yes\"?>~%"))
+(defconstant +xml-prologue-string+ "<?xml version=\"1.0\" encoding=\"iso-8859-1\" standalone=\"yes\"?>"))
(defconstant +xhtml-prologue-string+
- (format nil
- "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">~%"))
+ "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">"))
(defvar *print-spaces* nil)
(defvar *indent* 0)
(defmacro xhtml-prologue ()
`(progn
- (lml-print +xml-prologue-string+)
- (lml-print +xhtml-prologue-string+)))
+ (lml-print "~A~%" +xml-prologue-string+)
+ (lml-print "~A~%" +xhtml-prologue-string+)))
(defmacro link (dest &body body)
`(with a :href ,dest ,@body))
(defmacro br ()
`(lml-print "<br />"))
+(defmacro hr ()
+ `(lml-print "<hr />"))
+
(defmacro lml-tag-macro (tag)
`(progn
(defmacro ,tag (&body body)
(defparameter *macro-list*
'(a div span h1 h2 h3 h4 h5 h6 i b p li ul ol table tbody td tr body head
html title pre tt u dl dt dd kbd code form))
- (export '(link link-c br img input meta meta-key))
+ (export '(link link-c br hr img input meta meta-key))
(export *macro-list*))
(loop for i in *macro-list*