From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: How to easily create a new export engine... Date: Tue, 03 Sep 2013 16:02:10 +0200 Message-ID: <87mwnu2ecd.fsf@gmail.com> References: <20130903135112.GF22460@kuru.dyndns-at-home.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48764) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGrBF-0003E7-Fi for emacs-orgmode@gnu.org; Tue, 03 Sep 2013 10:02:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VGrB7-0000iI-3U for emacs-orgmode@gnu.org; Tue, 03 Sep 2013 10:02:05 -0400 Received: from mail-ee0-x229.google.com ([2a00:1450:4013:c00::229]:62998) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGrB6-0000i3-TG for emacs-orgmode@gnu.org; Tue, 03 Sep 2013 10:01:57 -0400 Received: by mail-ee0-f41.google.com with SMTP id d17so3038026eek.0 for ; Tue, 03 Sep 2013 07:01:56 -0700 (PDT) In-Reply-To: <20130903135112.GF22460@kuru.dyndns-at-home.com> (Suvayu Ali's message of "Tue, 3 Sep 2013 15:51:12 +0200") 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: Suvayu Ali Cc: emacs-orgmode@gnu.org Hello, Suvayu Ali writes: > On Tue, Sep 03, 2013 at 03:37:05PM +0200, flammable project wrote: >> Hi all, >> >> I'm looking for informations on how to create a new exporter based on the >> new export engine. >> >> I want to convert org files into HTML files in which some "functions" from >> Twitter Bootstrap framework will be instantiated via Emacs and Org-Mode. >> >> I'm quite fustrated because the org-export_generic.el file is obsolete and >> I tried to use ox.el ox-ascii.el files but I was discouraged by their heavy >> contents. >> >> Could you please tell how to easily find a good starting "point" ? > > You could take a look at ox-md.el; it derives from ox-html.el. Since > you want to add to ox-html.el, that might be a nice starting point. > > Needless to say, you should probably wait for Nicolas's comment. He is > the expert, I'm just a user who looks at the source from time to time > ;). The OP could also look at "12.13 Advanced configuration" from Org manual. There's an example on how to extend an existing back-end. There's also `org-export-define-derived-backend' docstring. If the new exporter is not meant for public consumption and would always be used instead of regular html back-end, defadvices are also fine. Regards, -- Nicolas Goaziou