From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sean O'Halpin" Subject: Re: [ANN] Merge of new export framework on Wednesday Date: Sat, 9 Feb 2013 13:20:41 +0000 Message-ID: References: <876229nrxf.fsf@gmail.com> <86d2wau54f.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57662) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4Aee-0000o7-Pj for emacs-orgmode@gnu.org; Sat, 09 Feb 2013 08:39:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U4Aed-0004QA-8x for emacs-orgmode@gnu.org; Sat, 09 Feb 2013 08:39:44 -0500 Received: from mail-wg0-x229.google.com ([2a00:1450:400c:c00::229]:59433) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4AME-0000Ty-KW for emacs-orgmode@gnu.org; Sat, 09 Feb 2013 08:20:42 -0500 Received: by mail-wg0-f41.google.com with SMTP id ds1so1332404wgb.2 for ; Sat, 09 Feb 2013 05:20:41 -0800 (PST) In-Reply-To: <86d2wau54f.fsf@somewhere.org> 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: Sebastien Vauban Cc: emacs-orgmode@gnu.org On Fri, Feb 8, 2013 at 4:45 PM, Sebastien Vauban wrote: > > "Sean O'Halpin" wrote: >> >> I suggest we rename it to "#+HTML_HEAD". > > But I'd like to propose HTML_HEADER instead (?), to "mirror" what LaTeX_HEADER > does -- at least, if that one still exists, which I'm not sure about (not > enough played with the new exporter yet). > I'm going on the assumption that what comes after the =#+HTML_= prefix is specific to the HTML back-end. Where LaTeX has a /conceptual/ header, HTML has a /concrete/ == element. There's nothing to mirror =LaTeX_CLASS= for example because the concept of document class does not exist in HTML. This raises another question which is more about Org document export headers in general: why do we have specific document headers for LaTeX and HTML? Because we need to able to insert raw markup at specific points in the exported document. (We also have =html-preamble= and =html-postamble= which act on every document.) But what about other exporter back-ends? Say we get a native org to docbook exporter. What would be the mechanism for inserting markup into the ==? Would there be a =#+DOCBOOK_HEADER=? Please forgive my meandering here. It's just struck me that we might need a more general mechanism for document-level export directives that will avoid multiplying the number of =#+HTML_= style directives we already have. Perhaps something along the lines of: #+BEGIN_SRC ORG ,#+EXPORT html head