From: Bill Jackson <wj2@jacksonhost.com>
To: emacs-orgmode@gnu.org
Subject: Function for html-preamble and html-postamble in org-publish
Date: Sun, 11 Dec 2011 15:38:13 -0800 [thread overview]
Message-ID: <4EE53EE5.7040103@jacksonhost.com> (raw)
In version 7.7, a function provided to org-publish via :html-preamble or
:html-postamble no longer accepts a property list of export options. I
do not know if this change is a bug, or if it is deliberate.
I pass functions to :html-preamble and :html-postamble to integrate
generated HTML pages into a web site. In previous versions of org-mode,
such functions took a single argument as documented in
org-export-html-premable: "The function takes the property list of
export options as its only argument." In version 7.7 this appears to
have changed in org-html.el, org-export-as-html, lines 1,340 and 1,791
(they no longer pass opt-plist), without any change to documentation.
Further changes to this code have been made in the git repository.
I was able to restore the previous behavior simply by editing
org-html.el to again pass opt-plist on the two lines, but am interested
in what the future direction is for customizing the HTML output for
org-publish. Was this change unintentional, a deliberate minor change,
or is org-publish or org-html undergoing significant re-design? If this
was deliberate, is there an alternate method for customization functions
to access the property list?
Thanks for any insight,
Bill
next reply other threads:[~2011-12-11 23:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-11 23:38 Bill Jackson [this message]
2011-12-12 15:30 ` Function for html-preamble and html-postamble in org-publish Bastien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4EE53EE5.7040103@jacksonhost.com \
--to=wj2@jacksonhost.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).