From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Guerry Subject: Re: allow live execution of code snippets in html export Date: Wed, 14 Dec 2016 11:36:57 +0100 Message-ID: <87d1gukd9y.fsf@bzg.fr> References: <87mvfzzu4s.fsf@gmx.us> <877f72zux4.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46898) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cH6vs-0003fp-Gs for emacs-orgmode@gnu.org; Wed, 14 Dec 2016 05:37:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cH6vm-0007FB-Tq for emacs-orgmode@gnu.org; Wed, 14 Dec 2016 05:37:08 -0500 Received: from box.bzg.io ([46.101.205.100]:33243) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cH6vm-0007En-KT for emacs-orgmode@gnu.org; Wed, 14 Dec 2016 05:37:02 -0500 In-Reply-To: <877f72zux4.fsf@gmx.us> (Rasmus's message of "Wed, 14 Dec 2016 11:06:47 +0100") 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" To: Rasmus Cc: emacs-orgmode@gnu.org, viebel@gmail.com Hi all, thanks for adding me to this discussion! klipse + org works pretty much out of the box, which is really great. I just tested it again with a mix of Scheme and Clojure blocks, both can work together within the same HTML page. That said, I think we can take this opportunity to slightly improve how ox-html handles source code: - why only
 and not 
 ?

- make src-clojure in 
 customizable ?

- have ob-javascript.el to let ox-html know how to export js code?

- have org-html-js to easily allow adding js libraries at the bottom
  of a page? Perhaps together with #+html_js and #+html_js_extra ?

>> If the license permits, and there's a precedent, we could bundle the
>> scripts with org.

I have no problem with this, but I'd rather think a more general
mechanism to embed scripts in general and get more flexibility in
css classes.

If we provide a straightforward solution, I don't think there is
a problem pointing to Google servers.

We might have a problem with recommending js code that does not
pass the https://www.gnu.org/software/librejs/ tests: that is,
we cannot recommend code that is not advertised the way librejs
recommends it should be advertized.

This is an annoying issue, but a real one I guess.

As long as Klipse + org is somehow available and documented,
I'll be very happy :)

-- 
 Bastien