From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bill Powell Subject: HTML export: How to export body only, as HTML "fragment"? Date: Wed, 30 Sep 2009 10:53:48 -0400 Message-ID: <20090930145348.GA8130@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 1Mt0av-0007ae-26 for emacs-orgmode@gnu.org; Wed, 30 Sep 2009 10:55:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mt0aq-0007YC-0T for emacs-orgmode@gnu.org; Wed, 30 Sep 2009 10:55:52 -0400 Received: from [199.232.76.173] (port=35914 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mt0ap-0007Y9-TT for emacs-orgmode@gnu.org; Wed, 30 Sep 2009 10:55:47 -0400 Received: from billpowellisalive.com ([206.130.115.110]:38156) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mt0ap-00084U-Cm for emacs-orgmode@gnu.org; Wed, 30 Sep 2009 10:55:47 -0400 Received: from localhost (fl-76-6-210-255.dhcp.embarqhsd.net [76.6.210.255] (may be forged)) by billpowellisalive.com (8.13.1/8.13.1) with ESMTP id n8UEtLY1018968 for ; Wed, 30 Sep 2009 08:55:22 -0600 Content-Disposition: inline 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: emacs-orgmode@gnu.org Hi! First off, thanks to all for this amazing org-mode. I'd like to set up org-mode publishing mode to work with the blogging program pyblosxom. The HTML export that works out-of-the-box is almost perfect, but I need to: - 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. - tell org-mode to export the first few lines without touching them. Pyblosxom uses these lines to store things like the title, the tag list, and other variables. This pyblosxom "header" looks like this: First line is the title. #tags meta,about #blurb A pyblosxom variable line begins with #. HTML Export will slurp lines that begin with # by default: is there a way to turn this feature off? Anyhow, thanks very much for having a look. Sorry if the solution's already thre and I missed it. I know I could write a custom function to do this, but it seems cleaner to /not/ wrap the file, rather than wrap and then clean it. Bill Powell -- _____________________________________________________________ http://stmarysmessenger.com : New Catholic magazine for kids! http://wineskinmedia.com : Books and sites crafted with care. http://billpowellisalive.com : Man found alive with two legs. _____________________________________________________________