From: Israel Herraiz <isra@herraiz.org>
To: emacs-orgmode@gnu.org
Subject: Include mechanism for web publishing
Date: Wed, 29 Jul 2009 00:38:04 +0200 [thread overview]
Message-ID: <1248818656-sup-1415@elly> (raw)
Hi all,
I use org-mode for web publishing. My web contains four pages that
share a common (HTML) header, with some links to the different
sections of the web and other stuff.
At some point, I decided to include a common raw HTML in every
page. This raw HTML is Javascript stuff for visits counting using
Google Analytics.
That file is included in every page right after the title, using
#+INCLUDE header/header.org.
Everything was working fine when I had just links, but now that I have
included the #+BEGIN_HTML stuff, it is escaped when exporting
everything to HTML, and instead of my raw HTML in the output files I
get a line starting by ",#+BEGIN..." (properly written and escaped in
HTML; notice the initial comma).
I though of #+INCLUDE as a sort of C's #include, i.e. it just copies
the text of the included file in the line where #+INCLUDE is. However
this seems not to be the case.
I have found in the list a discussion about how to insert source code
in HTML outputs, without inserting the initial commas, which confirms
that included org files are escaped when exporting to HTML:
http://thread.gmane.org/gmane.emacs.orgmode/15707
I have also found this approach to include files approach, that I have
tried without success: nothing is shown in the HTML output (see second
message in the thread):
http://thread.gmane.org/gmane.emacs.orgmode/4127
Is there any way to do a plain (no escape) import of org files?
Cheers,
Israel
next reply other threads:[~2009-07-28 22:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-28 22:38 Israel Herraiz [this message]
2009-07-29 0:38 ` Include mechanism for web publishing Michael Zeller
2009-07-29 0:53 ` Michael Zeller
2009-07-29 14:08 ` Israel Herraiz
2009-07-29 15:25 ` Bastien
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=1248818656-sup-1415@elly \
--to=isra@herraiz.org \
--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).