From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: Re: allow live execution of code snippets in html export Date: Wed, 14 Dec 2016 22:18:37 -0500 Message-ID: References: <87mvfzzu4s.fsf@gmx.us> <877f72zux4.fsf@gmx.us> <87d1gukd9y.fsf@bzg.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113ea206c9fc0e0543a9e8f6 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49044) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cHMa5-00081X-Vj for emacs-orgmode@gnu.org; Wed, 14 Dec 2016 22:19:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cHMa2-0004av-Os for emacs-orgmode@gnu.org; Wed, 14 Dec 2016 22:19:41 -0500 Received: from mail-io0-f170.google.com ([209.85.223.170]:36070) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cHMa2-0004aH-IB for emacs-orgmode@gnu.org; Wed, 14 Dec 2016 22:19:38 -0500 Received: by mail-io0-f170.google.com with SMTP id 136so58234692iou.3 for ; Wed, 14 Dec 2016 19:19:38 -0800 (PST) In-Reply-To: <87d1gukd9y.fsf@bzg.fr> 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: Bastien Guerry Cc: Yehonathan Sharvit , Org Mode , Rasmus --001a113ea206c9fc0e0543a9e8f6 Content-Type: text/plain; charset=UTF-8 On Wed, Dec 14, 2016 at 5:36 AM, Bastien Guerry wrote: > That said, I think we can take this opportunity to slightly improve > how ox-html handles source code: > > - why only
 and not 
 ?
>
Would we need a switch to permit the old syntax for people with complex
setups who don't want to change?

>
> - make src-clojure in 
 customizable ?
>
Is this likely to break anything in derived exporters? It would certianly
be convenient e.g for using highlight.js in wordpress in similar
environments.

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


Isn't this in org already? there's an ob-js.el in my org repo.


> - 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 ?
>

This seems like a good idea and pretty easy.

>
> >> 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.
>
> I odn't really quite understand the problem and solution parameters.
Since Yehonathan is here on this thread and enthusiastic about helping out:
is there something he could do to make this feasible for us?  Or by "more
general mechanism" do you mean some third way between bundling and linking
to?


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

>
> --
>  Bastien
>

--001a113ea206c9fc0e0543a9e8f6
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable



On Wed, Dec 14, 2016 at 5:36 AM, Bastien Guerry <<= a href=3D"mailto:bzg@bzg.fr" target=3D"_blank">bzg@bzg.fr> wr= ote:
That said, I think we can take this = opportunity to slightly improve
how ox-html handles source code:

- why only <pre> and not <pre><code> ?
Would we need a switch to permit the old syntax for people with complex = setups who don't want to change?

- make src-clojure in <pre class=3D"src src-clojure"> custo= mizable ?
Is this likely to break anything in derived = exporters? It would certianly be convenient e.g for using highlight.js in w= ordpress in similar environments.

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

Isn't this in org already? there's an ob-js.el in my = org repo. =C2=A0
=C2=A0
- have org-html-js to easily allow adding js libraries at the bottom
=C2=A0 of a page? Perhaps together with #+html_js and #+html_js_extra ?
=

This seems like a good idea and pretty easy.=C2=A0

>> If the license permits, and there's a precedent, we could bund= le 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.

I odn't really quite understand the problem and s= olution parameters.=C2=A0 Since Yehonathan is here on this thread and enthu= siastic about helping out: is there something he could do to make this feas= ible for us?=C2=A0 Or by "more general mechanism" do you mean som= e third way between bundling and linking to?
=C2=A0
As long as Klipse + org is somehow available and documented,
I'll be very happy :)
Me too!

--
=C2=A0Bastien

--001a113ea206c9fc0e0543a9e8f6--