From mboxrd@z Thu Jan 1 00:00:00 1970 From: Israel Herraiz Subject: Include mechanism for web publishing Date: Wed, 29 Jul 2009 00:38:04 +0200 Message-ID: <1248818656-sup-1415@elly> Content-Type: text/plain; charset=utf8 Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MVvHk-0004Jr-94 for emacs-orgmode@gnu.org; Tue, 28 Jul 2009 18:36:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MVvHf-0004Ha-EU for emacs-orgmode@gnu.org; Tue, 28 Jul 2009 18:36:39 -0400 Received: from [199.232.76.173] (port=46167 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVvHf-0004HU-AE for emacs-orgmode@gnu.org; Tue, 28 Jul 2009 18:36:35 -0400 Received: from mx20.gnu.org ([199.232.41.8]:9402) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MVvHe-0002Lw-QS for emacs-orgmode@gnu.org; Tue, 28 Jul 2009 18:36:35 -0400 Received: from mail-ew0-f228.google.com ([209.85.219.228]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MVvHd-0006vs-87 for emacs-orgmode@gnu.org; Tue, 28 Jul 2009 18:36:33 -0400 Received: by ewy28 with SMTP id 28so869986ewy.42 for ; Tue, 28 Jul 2009 15:36:31 -0700 (PDT) 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: emacs-orgmode@gnu.org 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