Hi Manoj,

the function `org-export-region-as-html' can be called with a
body-only option, and can also return a string instead of creating a
buffer with the output.  You can write your own wrapper that writes
this strig to a file if that is what you need.

HTH.

- Carsten

-----Original Message-----
From: emacs-orgmode-bounces+dominik=science.uva.nl@gnu.org on behalf of Manoj Srivastava
Sent: Mon 6/9/2008 8:52 AM
To: emacs-orgmode@gnu.org
Subject: [Orgmode] export only the body (with out postamble) as html?

Hi,

        I have started using org-mode to write my ikiwiki blog
 entries[0], and I have had to strip out the header and the footer from
 the generated HTML file (since ikiwiki already has complex templates to
 give my pages the correct look and feel).

        Would it be possible to get a finction that just generates the
 body of the page, minus the header and the postamble (and perhaps
 without the <body> and </body> tags) for use in generating embedded
 HTML snippets from org pages?

        thanks,

        manoj

0:
 http://www.golden-gryphon.com/blog/manoj/blog/2008/06/08/Using_org-mode_with_Ikiwiki/
--
gossip, n.: Hearing something you like about someone you don't. Earl
Wilson
Manoj Srivastava <srivasta@acm.org> <http://www.golden-gryphon.com/
1024D/BF24424C print 4966 F272 D093 B493 410B  924B 21BA DABB BF24 424C



_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode