;; -*- mode: common-lisp; package: lml2 -*-
;;
-;; $Id: htmlgen.lisp,v 1.3 2003/06/24 01:12:17 kevin Exp $
+;; $Id: htmlgen.lisp,v 1.5 2003/06/24 16:41:44 kevin Exp $
;;
;; copyright (c) 1986-2000 Franz Inc, Berkeley, CA
;; copyright (c) 2003 Kevin Rosenberg
(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 ',body))))
+
+ (named-function html-nbsp-print-function
+ (lambda (ent cmd args form subst unknown stream)
+ (declare (ignore ent unknown subst stream form))
+ (if* (eq cmd :full)
+ then (lml-load-path (cadr form))
+ else (error ":insert-file must be given an argument")))))