r11296: add optional final rightcol files
authorKevin M. Rosenberg <kevin@rosenberg.net>
Tue, 7 Nov 2006 18:27:21 +0000 (18:27 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Tue, 7 Nov 2006 18:27:21 +0000 (18:27 +0000)
2/ChangeLog
2/debian/changelog
2/files.lisp
2/stdsite.lisp

index dc8a5ce6cf057e9b4fef35bd0dcc9d956d0de0af..2f1b10f5f59e4e632878724d384cf9b71900b2fb 100644 (file)
@@ -1,3 +1,7 @@
+2006-11-07  Kevin M. Rosenberg  <kevin@rosenberg.net>
+       * stdstite.lisp, files.lisp: Add optional final and rightcol files
+
+
 2006-01-17  Kevin M. Rosenberg  <kevin@rosenberg.net>
        * cl-lml2.asd: Apply modified patch from Gary King
        so that asdf:test-op always performs test.
index 4acac6331a8649f7d5d7b50cb243e9465b485497..a3476c2d1f6d8b5068141842473397178df855ec 100644 (file)
@@ -1,3 +1,9 @@
+cl-lml2 (1.6.0-1) unstable; urgency=low
+
+  * New upstream
+
+ -- Kevin M. Rosenberg <kmr@debian.org>  Tue,  7 Nov 2006 11:25:42 -0700
+
 cl-lml2 (1.5.6-1) unstable; urgency=low
 
   * New upstream
index db1a9b1827d2d76a33865d8fd4288cf8a9aa4d00..9c5dd2ed95906fb91ceb6749a3d62df9e59fc997 100644 (file)
          (*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)
@@ -73,8 +74,8 @@
        (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*))
index a022c4277c24ae088cdc61a2ec056c83537f666d..14fb961b02c8c45aa7b12f3be82af361e9164b62 100644 (file)
@@ -22,7 +22,9 @@
 ;;;  banner.lml_
 ;;;  content.lml_
 ;;;  footer.lml_
+;;; These files are optional
 ;;;  final.lml_
+;;;  rightcol.lml_
 
 (in-package #:lml2)
 
         (lml-load "contents.lml_"))
        ((:td :valign "top")
         ,@body
-        (std-footer ,file)))))
-     (lml-load "final.lml_"))))
+        (std-footer ,file))
+        ((:td :valign "top")
+         (lml-load "rightcol.lml_" :optional t)))))
+     (lml-load "final.lml_" :optional t))))
   
 
 (defmacro print-std-page (file title format &body body)