X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=2%2Ffiles.lisp;h=445e5487c63b15e948d338b2dd2ba210ed4b6675;hb=8c4ce88a9dcd9ed4b4fa8f5032683ea6bffc0a28;hp=9045cb4fc5a87728f124b0149680bae8c3899309;hpb=096b456fe920373f3b54fbe47f10f3e41c4fe925;p=lml.git diff --git a/2/files.lisp b/2/files.lisp index 9045cb4..445e548 100644 --- a/2/files.lisp +++ b/2/files.lisp @@ -2,16 +2,14 @@ ;;;; ************************************************************************* ;;;; FILE IDENTIFICATION ;;;; -;;;; Name: files.cl +;;;; Name: files.lisp ;;;; Purpose: File and directory functions for LML ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Aug 2002 ;;;; -;;;; This file, part of LML2, is Copyright (c) 2002 by Kevin M. Rosenberg +;;;; This file, part of LML2, is Copyright (c) 2000-2003 by Kevin Rosenberg. +;;;; Rights of modification and redistribution are in the LICENSE file. ;;;; -;;;; LML2 users are granted the rights to distribute and use this software -;;;; as governed by the terms of the GNU General Public License v2 -;;;; (http://www.gnu.org/licenses/gpl.html) ;;;; ************************************************************************* (in-package #:lml2) @@ -31,11 +29,13 @@ (unless (position #\. f) (setq f (concatenate 'string f ".html")))) (if *sources-dir* - (make-pathname :defaults (ecase type - (:source *sources-dir*) - (:output *output-dir*)) - :name `,(pathname-name f) - :type `,(pathname-type f)) + (merge-pathnames + (make-pathname :name `,(pathname-name f) + :type `,(pathname-type f) + :directory `,(pathname-directory f)) + (ecase type + (:source *sources-dir*) + (:output *output-dir*))) (if (stringp f) (parse-namestring f) f)))) @@ -76,5 +76,5 @@ (defun lml-load (file) (lml-load-path (eval `(lml-file-name ,file :source)))) -(defun include-file (file) +(defun insert-file (file) (print-file-contents file *html-stream*))