|
From: | Bill Jackson |
Subject: | [O] Function for html-preamble and html-postamble in org-publish |
Date: | Sun, 11 Dec 2011 15:38:13 -0800 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |