From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: RFC: Revisit org-export-content-div (in the context of org-s5) Date: Sun, 10 Jul 2011 16:39:48 +0530 Message-ID: <81d3hi75oj.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:48131) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qfrt1-0007XY-6A for emacs-orgmode@gnu.org; Sun, 10 Jul 2011 07:09:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qfrt0-0000DP-6q for emacs-orgmode@gnu.org; Sun, 10 Jul 2011 07:09:19 -0400 Received: from mail-pz0-f41.google.com ([209.85.210.41]:61066) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qfrt0-0000DL-0x for emacs-orgmode@gnu.org; Sun, 10 Jul 2011 07:09:18 -0400 Received: by pzk4 with SMTP id 4so2818410pzk.0 for ; Sun, 10 Jul 2011 04:09:17 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Couple of comments wrt org-export-content-div: 1. Should be renamed to org-export-html-content-div 2. If we look at org-s5.el[1], we see the following usage where apparently
is essentially replaced by "
with a bunch of leading and trailing stuff. #+begin_src emacs-lisp (lambda () (save-excursion (replace-regexp (regexp-quote "
") (let ((info `(("author" . ,author) ("title" . ,title) ("date" . ,(substring date 0 10))))) (join `("
" "
" "
" "
" "
" ,(org-fill-template org-s5-title-string-fmt info) "
" "
" "" "
" ,(org-fill-template org-s5-title-page-fmt info))))))) #+end_src 3. Considering (2) above it might be worthwhile defining the customization as below (for a first cut) #+begin_src emacs-lisp (defcustom org-export-html-content-div "%s
%s" ; note the html in prefix "The name of the container DIV that holds all the page contents." :group 'org-export-htmlize :type 'string) #+end_src With the above re-definition I believe there is an opportunity to suck #+begin_src emacs-lisp-mode (if (or link-up link-home) (concat (format org-export-html-home/up-format (or link-up link-home) (or link-home link-up)) "\n") "") #+end_src and even the entire preamble in to #+begin_src emacs-lisp (when (plist-get opt-plist :html-preamble) ;; etc etc etc ) #+end_src the suffix %s in the above custom definition. Or alternatively one can suck the suffix "%s" in to preamble string. Just a thought. WDYT. Jambunathan K. Footnotes: [1] https://github.com/eschulte/org-S5/blob/master/org-export-as-s5.el at around line 60 or so. --