emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bill Powell <bill@billpowellisalive.com>
To: emacs-orgmode@gnu.org
Subject: HTML export: How to export body only, as HTML "fragment"?
Date: Wed, 30 Sep 2009 10:53:48 -0400	[thread overview]
Message-ID: <20090930145348.GA8130@billpowellisalive.com> (raw)

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	other threads:[~2009-09-30 14:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-30 14:53 Bill Powell [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-10-01  1:47 HTML export: How to export body only, as HTML "fragment"? Bill Powell
2009-10-01  3:06 ` Matt Lundin
2009-10-01  4:40 ` Sebastian Rose

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090930145348.GA8130@billpowellisalive.com \
    --to=bill@billpowellisalive.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).