From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Javascript in postamble Date: Tue, 18 Dec 2012 18:54:57 +0100 Message-ID: <87obhrckjy.fsf@bzg.ath.cx> References: <20121107211203.GA11296@panahar> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33123) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tl1Nc-00021B-TW for emacs-orgmode@gnu.org; Tue, 18 Dec 2012 12:55:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tl1Nb-0006Wa-8S for emacs-orgmode@gnu.org; Tue, 18 Dec 2012 12:55:00 -0500 Received: from mail-wg0-f46.google.com ([74.125.82.46]:59757) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tl1Nb-0006WV-2i for emacs-orgmode@gnu.org; Tue, 18 Dec 2012 12:54:59 -0500 Received: by mail-wg0-f46.google.com with SMTP id dr13so446687wgb.25 for ; Tue, 18 Dec 2012 09:54:58 -0800 (PST) In-Reply-To: <20121107211203.GA11296@panahar> (Vikas Rawal's message of "Thu, 8 Nov 2012 06:12:03 +0900") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode Hi Vikas, Vikas Rawal writes: > For a website that I am producing using orgmode, I would like to > insert a javascript code in the postamble to get a piwik installation > to track traffic to the website. > > I am unable to add html markup/java script to :html-postamble in > project alist. The documentation on postamble is too brief for me. Can > anyone give an example? Simply set `org-export-html-postamble' to a string containing your javascript code (or :html-postamble in a publishing project.) For the new exporter, see `org-e-html-postamble-format', which is a template string that you can customize. HTH, -- Bastien