From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: One org file, multiple exports, is it possible? Date: Sun, 23 May 2010 09:58:31 -0600 Message-ID: <87bpc6wqxk.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=57903 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGDZW-0001F9-MP for emacs-orgmode@gnu.org; Sun, 23 May 2010 11:58:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OGDZV-0002Qu-22 for emacs-orgmode@gnu.org; Sun, 23 May 2010 11:58:38 -0400 Received: from mail-pz0-f176.google.com ([209.85.222.176]:55337) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGDZU-0002Qg-RX for emacs-orgmode@gnu.org; Sun, 23 May 2010 11:58:37 -0400 Received: by pzk6 with SMTP id 6so1147720pzk.1 for ; Sun, 23 May 2010 08:58:35 -0700 (PDT) In-Reply-To: (Karl Martino's message of "Sun, 23 May 2010 08:22:45 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: kmartino@pobox.com Cc: emacs-orgmode@gnu.org Hi Karl, Maybe the following little function will work. If called from an org-mode file, it will try to export each subtree, respecting the values of EXPORT_FILE_NAME and EXPORT_TITLE. --8<---------------cut here---------------start------------->8--- (defun org-export-parts () (interactive) (org-map-entries (lambda () (outline-mark-subtree) (org-export-as-html nil)))) --8<---------------cut here---------------end--------------->8--- it shouldn't be difficult to augment the above to set exporting options based on the values of subtree tags. If this isn't sufficient, and you want really powerful templating of different classes of html files you could try out jekyll [1], and some of the org-jekyll solutions [2]. Hope this helps -- Eric Footnotes: [1] http://jekyllrb.com/ [2] http://orgmode.org/worg/org-tutorials/org-jekyll.php