HTML export: More flexibility for preamble and postamble
commit30d448b2e1a82b7e081613eea9af01d3f1c260b3
authorCarsten Dominik <carsten.dominik@gmail.com>
Mon, 6 Jul 2009 16:10:26 +0000 (6 18:10 +0200)
committerCarsten Dominik <carsten.dominik@gmail.com>
Mon, 6 Jul 2009 16:10:26 +0000 (6 18:10 +0200)
treed8935b03c3ada69bd089c843fc6b9ae1183145b4
parentc1d00fa463f797b4b42accaccf4bc0f32ad12994
HTML export: More flexibility for preamble and postamble

Andreas Rottmann writes:

> Well, the subject says it all -- attached is a rough patch to
> allow more flexibility with the HTML export; I use it like this:
>
>    (defun rotty/homepage-preamble (opt-plist)
>      (insert "<div id=\"header\">")
>      (insert
>       "
>    <div id=\"navbar\">
>    <a class=\"menu\" href=\"/\">Home</a>
>    | <a class=\"menu\" href=\"/Writings.html\">Writings</a>
>    | <a class=\"menu\" href=\"/Software.html\">Software</a>
>    | <a class=\"menu\" href=\"/blog/\">Blog</a>
>    </div>
>    ")
>      (insert (format
>               "<h1 class=\"title\"><a href=\"/\">rotty</a> &gt; %s</h1>\n"
>               (plist-get opt-plist :title)))
>      (insert "</div>\n")
>      (insert "<div id=\"inner\">\n"))
lisp/ChangeLog
lisp/org-html.el