(*sources-dir* ,sources-dir))
,@body))))
-(defun lml-load-path (file)
+(defun lml-load-path (file &key optional)
(if (probe-file file)
(with-open-file (in file :direction :input)
(do ((form (read in nil 'eof) (read in nil 'eof)))
((eq form 'eof))
(eval form)))
- (format *trace-output* "Warning: unable to load LML file ~S" file)))
+ (unless optional
+ (format *trace-output* "Warning: unable to load LML file ~S" file))))
(defun process-dir (dir &key sources)
(with-dir (dir :sources sources)
(format *trace-output* "~&; Processing ~A~%" file)
(lml-load-path file)))))
-(defun lml-load (file)
- (lml-load-path (eval `(lml-file-name ,file :source))))
+(defun lml-load (file &key optional)
+ (lml-load-path (eval `(lml-file-name ,file :source)) :optional optional))
(defun insert-file (file)
(print-file-contents file *html-stream*))