From: "Dominik, C." <C.Dominik@uva.nl>
To: Manoj Srivastava <srivasta@ieee.org>, emacs-orgmode@gnu.org
Subject: RE: export only the body (with out postamble) as html?
Date: Mon, 9 Jun 2008 09:56:09 +0200 [thread overview]
Message-ID: <9592BB6CDB1CEB48826BE86ACD71FA996ABF66@kwik.ic.uva.nl> (raw)
In-Reply-To: 87fxrnf6cs.fsf@anzu.internal.golden-gryphon.com
[-- 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
prev parent reply other threads:[~2008-06-09 7:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-09 6:52 export only the body (with out postamble) as html? Manoj Srivastava
2008-06-09 7:56 ` Dominik, C. [this message]
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=9592BB6CDB1CEB48826BE86ACD71FA996ABF66@kwik.ic.uva.nl \
--to=c.dominik@uva.nl \
--cc=emacs-orgmode@gnu.org \
--cc=srivasta@ieee.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.