From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: RFC: Revisit org-export-content-div (in the context of org-s5) Date: Mon, 11 Jul 2011 13:44:27 +0200 Message-ID: <87pqlh82jo.fsf@gnu.org> References: <81d3hi75oj.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:58627) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgEuF-0007Ng-6E for emacs-orgmode@gnu.org; Mon, 11 Jul 2011 07:44:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QgEuD-0002sE-FL for emacs-orgmode@gnu.org; Mon, 11 Jul 2011 07:44:06 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:59073) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgEuC-0002rq-EQ for emacs-orgmode@gnu.org; Mon, 11 Jul 2011 07:44:04 -0400 Received: by wwf22 with SMTP id 22so2995170wwf.30 for ; Mon, 11 Jul 2011 04:44:03 -0700 (PDT) In-Reply-To: <81d3hi75oj.fsf@gmail.com> (Jambunathan K.'s message of "Sun, 10 Jul 2011 16:39:48 +0530") 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: Jambunathan K Cc: emacs-orgmode@gnu.org Hi Jambunathan, Jambunathan K writes: > Couple of comments wrt org-export-content-div: > > 1. Should be renamed to org-export-html-content-div Done. > 2. If we look at org-s5.el[1], we see the following usage where > apparently
is essentially replaced by "
class="presentation"> 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 This looks to complicated to me. I've introduced a new defcustom `org-export-html-before-content-div' which lets the user place arbitrary HTML code before the main container. org-s5.el could you this instead of replacing the "
". -- Bastien