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 21:47:56 -0400 Message-ID: <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 1MtAni-0004sA-8O for emacs-orgmode@gnu.org; Wed, 30 Sep 2009 21:49:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MtAnd-0004rA-7F for emacs-orgmode@gnu.org; Wed, 30 Sep 2009 21:49:45 -0400 Received: from [199.232.76.173] (port=59428 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtAnd-0004r7-2d for emacs-orgmode@gnu.org; Wed, 30 Sep 2009 21:49:41 -0400 Received: from billpowellisalive.com ([206.130.115.110]:47919) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MtAnc-0006zG-HW for emacs-orgmode@gnu.org; Wed, 30 Sep 2009 21:49:40 -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 n911nVHI028135 for ; Wed, 30 Sep 2009 19:49:32 -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. Second, sorry if this posts twice. I've just joined the list, and may have messed up. :) I've just come in and seen the thread on using org-mode for blogging. Actually, I'd like to set up org-mode publishing mode to work with the blogging program called 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. _____________________________________________________________