emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Include mechanism for web publishing
@ 2009-07-28 22:38 Israel Herraiz
  2009-07-29  0:38 ` Michael Zeller
  0 siblings, 1 reply; 5+ messages in thread
From: Israel Herraiz @ 2009-07-28 22:38 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-07-29 15:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-28 22:38 Include mechanism for web publishing Israel Herraiz
2009-07-29  0:38 ` Michael Zeller
2009-07-29  0:53   ` Michael Zeller
2009-07-29 14:08     ` Israel Herraiz
2009-07-29 15:25       ` Bastien

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).