From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: HTML export: How to export body only, as HTML "fragment"? Date: Wed, 30 Sep 2009 23:06:04 -0400 Message-ID: <87pr9724pv.fsf@fastmail.fm> References: <20091001014756.GA11179@billpowellisalive.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MtBzn-0005k7-1X for emacs-orgmode@gnu.org; Wed, 30 Sep 2009 23:06:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MtBzh-0005jP-F5 for emacs-orgmode@gnu.org; Wed, 30 Sep 2009 23:06:17 -0400 Received: from [199.232.76.173] (port=33393 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtBzh-0005jM-CH for emacs-orgmode@gnu.org; Wed, 30 Sep 2009 23:06:13 -0400 Received: from out1.smtp.messagingengine.com ([66.111.4.25]:45176) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MtBzg-0005qW-Vt for emacs-orgmode@gnu.org; Wed, 30 Sep 2009 23:06:13 -0400 In-Reply-To: <20091001014756.GA11179@billpowellisalive.com> (Bill Powell's message of "Wed, 30 Sep 2009 21:47:56 -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: Bill Powell Cc: emacs-orgmode@gnu.org Bill Powell writes: > - get HTML export to just convert the text to HTML, > without wrapping a template and and and > tags around it. I can't find an option to do this, > but it seems like if there isn't one, it should be fairly > easy to implement. Pyblosxom needs HTML fragments so it can > wrap my custom templates with dynamic title lists, etc. There are BODY-ONLY arguments for both org-export-as-html and org-export-region-as-html. Here's an example provided in the docstring of org-export-region-as-html: ,---- | (setq html (org-export-region-as-html beg end t 'string)) `---- Best, Matt