emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] HTML export: How to export body only, as HTML "fragment"?


From: Bill Powell
Subject: [Orgmode] HTML export: How to export body only, as HTML "fragment"?
Date: Wed, 30 Sep 2009 10:53:48 -0400
User-agent: Mutt/1.5.17-muttng (2007-11-01)

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 <head> and <html> and
<body> 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.  
_____________________________________________________________





reply via email to

[Prev in Thread] Current Thread [Next in Thread]