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 21:47:56 -0400 [thread overview]
Message-ID: <20091001014756.GA11179@billpowellisalive.com> (raw)
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 <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.
_____________________________________________________________
next reply other threads:[~2009-10-01 1:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-01 1:47 Bill Powell [this message]
2009-10-01 3:06 ` HTML export: How to export body only, as HTML "fragment"? Matt Lundin
2009-10-01 4:40 ` Sebastian Rose
-- strict thread matches above, loose matches on Subject: below --
2009-09-30 14:53 Bill Powell
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091001014756.GA11179@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.