From eefa9b89408f54530da92a38397463791384cc54 Mon Sep 17 00:00:00 2001 From: "Kevin M. Rosenberg" Date: Tue, 24 Jun 2003 16:30:05 +0000 Subject: [PATCH] r5187: *** empty log message *** --- htmlgen.lisp | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/htmlgen.lisp b/htmlgen.lisp index e315b27..3740158 100644 --- a/htmlgen.lisp +++ b/htmlgen.lisp @@ -1,6 +1,6 @@ ;; -*- mode: common-lisp; package: lml2 -*- ;; -;; $Id: htmlgen.lisp,v 1.3 2003/06/24 01:12:17 kevin Exp $ +;; $Id: htmlgen.lisp,v 1.4 2003/06/24 16:30:05 kevin Exp $ ;; ;; copyright (c) 1986-2000 Franz Inc, Berkeley, CA ;; copyright (c) 2003 Kevin Rosenberg @@ -757,3 +757,18 @@ (if* (eq cmd :set) then (write-string " " stream) else (error ":nbsp in an illegal place: ~s" form))))) + +(def-special-html :insert-file + (named-function html-nbsp-function + (lambda (ent args argsp body) + (declare (ignore ent argsp)) + (unless body + (error "must have a body with :insert-file")) + `(lml-load-path (car ,args) *html-stream*))) + + (named-function html-nbsp-print-function + (lambda (ent cmd args form subst unknown stream) + (declare (ignore args ent unknown subst)) + (if* (eq cmd :full) + then (lml-load-path (car args)) + else (error ":insert-file must be given an argument"))))) -- 2.34.1