emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matt Lundin <mdl@imapmail.org>
To: Bill Powell <bill@billpowellisalive.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: HTML export: How to export body only, as HTML "fragment"?
Date: Wed, 30 Sep 2009 23:06:04 -0400	[thread overview]
Message-ID: <87pr9724pv.fsf@fastmail.fm> (raw)
In-Reply-To: <20091001014756.GA11179@billpowellisalive.com> (Bill Powell's message of "Wed, 30 Sep 2009 21:47:56 -0400")

Bill Powell <bill@billpowellisalive.com> writes:

> - 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.

There are BODY-ONLY arguments for both org-export-as-html and
org-export-region-as-html.

Here's an example provided in the docstring of
org-export-region-as-html:

,----
|   (setq html (org-export-region-as-html beg end t 'string))
`----

Best,
Matt

  reply	other threads:[~2009-10-01  3:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-01  1:47 HTML export: How to export body only, as HTML "fragment"? Bill Powell
2009-10-01  3:06 ` Matt Lundin [this message]
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

  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=87pr9724pv.fsf@fastmail.fm \
    --to=mdl@imapmail.org \
    --cc=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).