* export only the body (with out postamble) as html?
@ 2008-06-09 6:52 Manoj Srivastava
2008-06-09 7:56 ` Dominik, C.
0 siblings, 1 reply; 2+ messages in thread
From: Manoj Srivastava @ 2008-06-09 6:52 UTC (permalink / raw)
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: export only the body (with out postamble) as html?
2008-06-09 6:52 export only the body (with out postamble) as html? Manoj Srivastava
@ 2008-06-09 7:56 ` Dominik, C.
0 siblings, 0 replies; 2+ messages in thread
From: Dominik, C. @ 2008-06-09 7:56 UTC (permalink / raw)
To: Manoj Srivastava, emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 1617 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 2645 bytes --]
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-06-09 7:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-09 6:52 export only the body (with out postamble) as html? Manoj Srivastava
2008-06-09 7:56 ` Dominik, C.
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.