From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Dominik, C." Subject: RE: export only the body (with out postamble) as html? Date: Mon, 9 Jun 2008 09:56:09 +0200 Message-ID: <9592BB6CDB1CEB48826BE86ACD71FA996ABF66@kwik.ic.uva.nl> References: <87fxrnf6cs.fsf@anzu.internal.golden-gryphon.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1541510619==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K5cGg-0007bu-6U for emacs-orgmode@gnu.org; Mon, 09 Jun 2008 03:58:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K5cGf-0007bi-Nd for emacs-orgmode@gnu.org; Mon, 09 Jun 2008 03:58:17 -0400 Received: from [199.232.76.173] (port=58130 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K5cGf-0007bf-I4 for emacs-orgmode@gnu.org; Mon, 09 Jun 2008 03:58:17 -0400 Received: from mx20.gnu.org ([199.232.41.8]:40381) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K5cGe-00043U-Un for emacs-orgmode@gnu.org; Mon, 09 Jun 2008 03:58:17 -0400 Received: from kwik.ic.uva.nl ([146.50.98.168]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K5cGd-0003BU-Qk for emacs-orgmode@gnu.org; Mon, 09 Jun 2008 03:58:16 -0400 Content-class: urn:content-classes:message List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Manoj Srivastava , emacs-orgmode@gnu.org This is a multi-part message in MIME format. --===============1541510619== Content-class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C8CA06.920EBA5F" This is a multi-part message in MIME format. ------_=_NextPart_001_01C8CA06.920EBA5F Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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=3Dscience.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? =20 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 and 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_w= ith_Ikiwiki/=20 --=20 gossip, n.: Hearing something you like about someone you don't. Earl Wilson Manoj Srivastava =20 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 ------_=_NextPart_001_01C8CA06.920EBA5F Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: [Orgmode] export only the body (with out postamble) as = html?

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=3Dscience.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

------_=_NextPart_001_01C8CA06.920EBA5F-- --===============1541510619== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1541510619==--