Hello all

I wrote small function, that could be usefull for html generation - when
you has hierarhy of subdirectories, and want to use only one stylesheet for
all files.

(defun muse-gen-relative-name (name)
 (file-relative-name
  (concat
  (file-name-directory (muse-wiki-resolve-project-page (muse-project)))
  name)))

it generate relative path, depending on location of current file relative
to root of project, and could be used as:

         <link rel="stylesheet" type="text/css" charset="utf-8" 
media="screen,projection" href="<lisp>(muse-gen-relative-name 
"web.css")</lisp>">

to generate correct pathes ../web.css, ../../web.css, etc.

-- 
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/        http://xtalk.msk.su/~ott/
http://alexott-ru.blogspot.com/

_______________________________________________
Muse-el-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/muse-el-discuss

Reply via email to