From 6d6a7cb916fa20e7d97647273e3f9be7a70f3e2b Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Sat, 7 Mar 2009 05:56:17 +0100 Subject: [PATCH] HTML export: New option to turn off Javascript inclusion It is now possible to turn off the inclusion of any javascript into the HTML file. --- lisp/ChangeLog | 8 ++++++++ lisp/org-exp.el | 12 +++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 73d381d5a..e459d595d 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,11 @@ +2009-03-07 Carsten Dominik + + * org-exp.el (org-export-html-style-include-scripts): New option. + (org-export-plist-vars): Add new option + `org-export-html-style-include-scripts'. + (org-export-as-html): Honor new option + `org-export-html-style-include-scripts'. + 2009-03-06 Carsten Dominik * org-publish.el (org-publish-attachment): Only copy file when the diff --git a/lisp/org-exp.el b/lisp/org-exp.el index 8abfae10d..c21755a2e 100644 --- a/lisp/org-exp.el +++ b/lisp/org-exp.el @@ -535,6 +535,13 @@ in this way, it will be wrapped." :group 'org-export-html :type '(string :tag "File or URL")) +(defcustom org-export-html-style-include-scripts t + "Non-nil means, include the javascript snippets in exported HTML files. +The actual script is defined in `org-export-html-scripts' and should +not be modified." + :group 'org-export-html + :type 'boolean) + (defconst org-export-html-scripts "