From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: allow live execution of code snippets in html export Date: Tue, 13 Dec 2016 09:55:28 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113ea20643aec805438b69e7 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60237) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGoVR-0002FF-RX for emacs-orgmode@gnu.org; Tue, 13 Dec 2016 09:56:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cGoVN-0006Mn-69 for emacs-orgmode@gnu.org; Tue, 13 Dec 2016 09:56:37 -0500 Received: from mail-io0-f169.google.com ([209.85.223.169]:33211) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cGoVN-0006Mf-1I for emacs-orgmode@gnu.org; Tue, 13 Dec 2016 09:56:33 -0500 Received: by mail-io0-f169.google.com with SMTP id d9so227723030ioe.0 for ; Tue, 13 Dec 2016 06:56:32 -0800 (PST) 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: Org Mode --001a113ea20643aec805438b69e7 Content-Type: text/plain; charset=UTF-8 In other threads I've been describing a method to allow live code snippets to be embedded in reveal.js export, using klipse ( https://github.com/viebel/klipse). I have to say it feels somewhat transformative to me, and I wonder if it would be worth integrating into ox-html. I'd be happy to hack together a patch but I wanted to ask if anyone else likes the idea. The great thing about putting it into ox-html instead of building a derived mode is that the other derived mode would potentially inherit the functionality directly. Would anyone else like to see this happen? --001a113ea20643aec805438b69e7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
In other threads I've been describing a method to= allow live code snippets to be embedded in reveal.js export, using klipse = (https://github.com/viebel/kli= pse).=C2=A0 I have to say it feels somewhat transformative to me, and I= wonder if it would be worth integrating into ox-html.=C2=A0 I'd be hap= py to hack together a patch but I wanted to ask if anyone else likes the id= ea.=C2=A0 The great thing about putting it into ox-html instead of building= a derived mode is that the other derived mode would potentially inherit th= e functionality directly.=C2=A0

Would anyone else like to see= this happen?
--001a113ea20643aec805438b69e7-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: allow live execution of code snippets in html export Date: Tue, 13 Dec 2016 15:39:27 +0000 Message-ID: <87pokv7s9c.fsf@pinto.chemeng.ucl.ac.uk> References: <44cd312833be418b92f225baf0940026@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> Reply-To: Eric S Fraga Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52267) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGpRN-0002jp-CZ for emacs-orgmode@gnu.org; Tue, 13 Dec 2016 10:56:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cGpRJ-00023k-Bp for emacs-orgmode@gnu.org; Tue, 13 Dec 2016 10:56:29 -0500 Received: from mail-db5eur01on0096.outbound.protection.outlook.com ([104.47.2.96]:62688 helo=EUR01-DB5-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cGpRI-000231-Vy for emacs-orgmode@gnu.org; Tue, 13 Dec 2016 10:56:25 -0500 In-Reply-To: <44cd312833be418b92f225baf0940026@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> (Matt Price's message of "Tue, 13 Dec 2016 14:55:28 +0000") 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: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tuesday, 13 Dec 2016 at 14:55, Matt Price wrote: > In other threads I've been describing a method to allow live code > snippets to be embedded in reveal.js export, using klipse (https:// > github.com/viebel/klipse). I have to say it feels somewhat > transformative to me, and I wonder if it would be worth integrating > into ox-html. I'd be happy to hack together a patch but I wanted to > ask if anyone else likes the idea. The great thing about putting it > into ox-html instead of building a derived mode is that the other > derived mode would potentially inherit the functionality directly. > > Would anyone else like to see this happen? I could see using this for a few of my lectures so, yes, please! =2D-=20 : Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_8.3.6-1268-g877f35 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iEYEARECAAYFAlhQFi8ACgkQyJGT2P/89n1SEgCfesPJn0n55vkcH+9eQ6vp2rTf 74YAn3LteaGluSqZzHZDZJKlKvfBZNZo =SZy5 -----END PGP SIGNATURE----- --=-=-=-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: allow live execution of code snippets in html export Date: Tue, 13 Dec 2016 17:11:31 +0100 Message-ID: <87mvfzzu4s.fsf@gmx.us> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57009) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGpgB-0003Zd-63 for emacs-orgmode@gnu.org; Tue, 13 Dec 2016 11:11:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cGpg7-0007Mo-PX for emacs-orgmode@gnu.org; Tue, 13 Dec 2016 11:11:47 -0500 Received: from [195.159.176.226] (port=35888 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cGpg7-0007MM-JF for emacs-orgmode@gnu.org; Tue, 13 Dec 2016 11:11:43 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cGpfx-0001hf-Dz for emacs-orgmode@gnu.org; Tue, 13 Dec 2016 17:11:33 +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: emacs-orgmode@gnu.org Hi Matt, > In other threads I've been describing a method to allow live code snippets > to be embedded in reveal.js export, using klipse ( > https://github.com/viebel/klipse). I have to say it feels somewhat > transformative to me, and I wonder if it would be worth integrating into > ox-html. I'd be happy to hack together a patch but I wanted to ask if > anyone else likes the idea. The great thing about putting it into ox-html > instead of building a derived mode is that the other derived mode would > potentially inherit the functionality directly. I like it. The clearest example seems to be this one: https://jsfiddle.net/viebel/50oLnykk/ Some observations follow: The syntax for Klipse source blocks is nice and simple:
function foo(name) {return "Hello " + name;} foo("Klipse");
It might be worth investigating whether you can just run Klipse on
blocks as that would potentially make it backward compatible.
Potentially, an extension to Klipse that recognizes Org src blocks (in
html) might be nice.

The Klipse license is GPL3.

The README recommends to get the files from googleapis.com.  I’m not sure
we would want to generate html files that get stuff from Google.  Then
again, maybe googleapis.com is perfectly OK...

It could easily become a mess in complex cases, e.g. if your Python code
blocks use Pandas, which does not seem to be supported by Skulpt.

Nonetheless, Klipse looks intriguing.  I think it could be great if you
look further into it.

Thanks,
Rasmus

-- 
Dung makes an excellent fertilizer

From mboxrd@z Thu Jan  1 00:00:00 1970
From: Rasmus 
Subject: Re: allow live execution of code snippets in html export
Date: Wed, 14 Dec 2016 11:06:47 +0100
Message-ID: <877f72zux4.fsf@gmx.us>
References: 
	<87mvfzzu4s.fsf@gmx.us>
	
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Return-path: 
Received: from eggs.gnu.org ([2001:4830:134:3::10]:40943)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from ) id 1cH6Si-0001yM-7r
	for emacs-orgmode@gnu.org; Wed, 14 Dec 2016 05:07:05 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from ) id 1cH6Sf-0007Fn-0D
	for emacs-orgmode@gnu.org; Wed, 14 Dec 2016 05:07:00 -0500
Received: from mout.gmx.net ([212.227.15.18]:53515)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from ) id 1cH6Se-0007F5-LF
	for emacs-orgmode@gnu.org; Wed, 14 Dec 2016 05:06:56 -0500
In-Reply-To: 
	(Matt Price's message of "Tue, 13 Dec 2016 12:05:09 -0500")
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: moptop99@gmail.com
Cc: bzg@bzg.fr, viebel@gmail.com, emacs-orgmode@gnu.org

Hi all,

>> It might be worth investigating whether you can just run Klipse on 
>> blocks as that would potentially make it backward compatible.
>> Potentially, an extension to Klipse that recognizes Org src blocks (in
>> html) might be nice.
>>
> I think that should be pretty straighforward.

Yeah, the link in Bastien's twitter post shows there's already a setting
for it

    

I don=E2=80=99t know if much more support is needed.  We add some automatic
configuration scripting or add a per-block switch for enabling klipse.

>> The Klipse license is GPL3.
>>
>
> Is org GPL2 or GPL3? Are there any compatibility issues between the two?

No, it was meant as a compliment of a sort.

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

The Mathjax that ox-html pointed to used to be hosted on orgmode.org until
Mathjax recommend their own CDN.  The problem with that solution is that
it would not be kept up-to-date.

Perhaps there=E2=80=99s no issue with potentially pointing to a Google serv=
er, I=E2=80=99m
probably on the more paranoid side on this issue.

Thanks,
Rasmus

--=20
Lasciate ogni speranza o voi che entrate: siete nella mani di'machellaio

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

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 12:55:29 -0500
Message-ID: 
References: 
	<87mvfzzu4s.fsf@gmx.us>
	
	<877f72zux4.fsf@gmx.us>
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=001a11452568e5d6560543a20a8b
Return-path: 
Received: from eggs.gnu.org ([2001:4830:134:3::10]:46738)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from ) id 1cHDnV-0000bZ-3g
	for emacs-orgmode@gnu.org; Wed, 14 Dec 2016 12:56:58 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from ) id 1cHDnR-00060F-Rx
	for emacs-orgmode@gnu.org; Wed, 14 Dec 2016 12:56:57 -0500
Received: from mail-it0-f47.google.com ([209.85.214.47]:38429)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from ) id 1cHDnR-0005sJ-Mu
	for emacs-orgmode@gnu.org; Wed, 14 Dec 2016 12:56:53 -0500
Received: by mail-it0-f47.google.com with SMTP id j191so7025433ita.1
	for ; Wed, 14 Dec 2016 09:56:30 -0800 (PST)
In-Reply-To: <877f72zux4.fsf@gmx.us>
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: bzg@bzg.fr, Yehonathan Sharvit , Org Mode 

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

On Wed, Dec 14, 2016 at 5:06 AM, Rasmus  wrote:

> Hi all,
>
> >> It might be worth investigating whether you can just run Klipse on 
> >> blocks as that would potentially make it backward compatible.
> >> Potentially, an extension to Klipse that recognizes Org src blocks (in
> >> html) might be nice.
> >>
> > I think that should be pretty straighforward.
>
> Yeah, the link in Bastien's twitter post shows there's already a setting
> for it
>
>     
>
> I don=E2=80=99t know if much more support is needed.  We add some automat=
ic
> configuration scripting or add a per-block switch for enabling klipse.
>
> Two more little things. HTML blocks can't use the standard editor so they
need an extra attribute `data-editor-style=3D"html"`

Also, Klipse supports including comma-separated external scripts to the
execution environment with the `data-external-libs` attribute

I have been using
#+ATTR_HTML :code_attribs data-external-libs=3D"
http://jquery.org/jquery.js,./lib/01.js".  I'm doing it in tandem with the
:tangle header, exporting previous code snippets and adding them to the
execution environment as I go (just for fun).  I don't know if there's a
better way to do this, potentially maybe trying to partially co-ordinate
the execution environments for klipse and org so that executing code in org
and in the html export gives similar results.  Seems a little ambitious.

Also, it would be nice if klipse had an elisp REPL since so many org users
blog about elisp.



> >> The Klipse license is GPL3.
> >>
> >
> > Is org GPL2 or GPL3? Are there any compatibility issues between the two=
?
>
> No, it was meant as a compliment of a sort.
>

:-)

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



On Wed, Dec 14, 2016 at 5:06 AM, Rasmus <rasmus@gmx.us> wr= ote:
Hi all,

>> It might be worth investigating whether you can just run Klipse on= <pre>
>> blocks as that would potentially make it backward compatible.
>> Potentially, an extension to Klipse that recognizes Org src blocks= (in
>> html) might be nice.
>>
> I think that should be pretty straighforward.

Yeah, the link in Bastien's twitter post shows there's alrea= dy a setting
for it

=C2=A0 =C2=A0 <script type=3D"text/javascript">window.= klipse_settings =3D {selector: '.src-clojure'};</script>

I don=E2=80=99t know if much more support is needed.=C2=A0 We add some auto= matic
configuration scripting or add a per-block switch for enabling klipse.

Two more little things. HTML = blocks can't use the standard editor so they need an extra attribute `d= ata-editor-style=3D"html"`

Also, Klipse support= s including comma-separated external scripts to the execution environment w= ith the `data-external-libs` attribute

I have been using =
#+ATTR_HTML :code_attribs data-external-libs=3D"http://jquery.org/jquery.js,./= lib/01.js".=C2=A0 I'm doing it in tandem with the :tangle head= er, exporting previous code snippets and adding them to the execution envir= onment as I go (just for fun).=C2=A0 I don't know if there's a bett= er way to do this, potentially maybe trying to partially co-ordinate the ex= ecution environments for klipse and org so that executing code in org and i= n the html export gives similar results.=C2=A0 Seems a little ambitious.=C2= =A0

Also, it would be nice if klipse had an elisp REPL s= ince so many org users blog about elisp.=C2=A0

=C2=A0
>> The Klipse license is GPL3.
>>
>
> Is org GPL2 or GPL3? Are there any compatibility issues between the tw= o?

No, it was meant as a compliment of a sort.
:-)
--001a11452568e5d6560543a20a8b-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yehonathan Sharvit Subject: Re: allow live execution of code snippets in html export Date: Wed, 14 Dec 2016 23:07:47 +0200 Message-ID: References: <87mvfzzu4s.fsf@gmx.us> <877f72zux4.fsf@gmx.us> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113ead92a0c3030543a4bab5 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55583) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cHGnd-0002i5-Cc for emacs-orgmode@gnu.org; Wed, 14 Dec 2016 16:09:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cHGnY-0000JT-I4 for emacs-orgmode@gnu.org; Wed, 14 Dec 2016 16:09:16 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:33161) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cHGnY-0000Ei-7t for emacs-orgmode@gnu.org; Wed, 14 Dec 2016 16:09:12 -0500 Received: by mail-wm0-f65.google.com with SMTP id u144so1796397wmu.0 for ; Wed, 14 Dec 2016 13:08:49 -0800 (PST) In-Reply-To: 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: Matt Price , Rasmus Cc: Bastien Guerry , Org Mode --001a113ead92a0c3030543a4bab5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, 14 Dec 2016 at 19:55 Matt Price wrote: > On Wed, Dec 14, 2016 at 5:06 AM, Rasmus wrote: > > Hi all, > > >> It might be worth investigating whether you can just run Klipse on > >> blocks as that would potentially make it backward compatible. > >> Potentially, an extension to Klipse that recognizes Org src blocks (in > >> html) might be nice. > >> > > I think that should be pretty straighforward. > > Yeah, the link in Bastien's twitter post shows there's already a setting > for it > > > > I don=E2=80=99t know if much more support is needed. We add some automat= ic > configuration scripting or add a per-block switch for enabling klipse. > > Two more little things. HTML blocks can't use the standard editor so they > need an extra attribute `data-editor-style=3D"html"` > > Also, Klipse supports including comma-separated external scripts to the > execution environment with the `data-external-libs` attribute > > I have been using > #+ATTR_HTML :code_attribs data-external-libs=3D"http:// > jquery.org/jquery.js,./lib/01.js". I'm doing it in tandem with the > :tangle header, exporting previous code snippets and adding them to the > execution environment as I go (just for fun). I don't know if there's a > better way to do this, potentially maybe trying to partially co-ordinate > the execution environments for klipse and org so that executing code in o= rg > and in the html export gives similar results. Seems a little ambitious. > > Also, it would be nice if klipse had an elisp REPL since so many org user= s > blog about elisp. > =E2=80=8BFor that, one needs to find (or to write) an elisp evaluation in javascript.=E2=80=8B > > > > >> The Klipse license is GPL3. > >> > > > > Is org GPL2 or GPL3? Are there any compatibility issues between the two= ? > > No, it was meant as a compliment of a sort. > > > :-) > --001a113ead92a0c3030543a4bab5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Wed, 14 Dec 2016 at 19:55 Matt Price &= lt;moptop99@gmail.c= om> wrote:
On Wed, Dec 14, 2016 at 5:06 AM, Rasmus <rasmus@gmx.us>= wrote:
Hi all,

>> It might be worth investigating whether you can just run Klipse on= <pre>
>> blocks as that would potentially make it backward compatible.
>> Potentially, an extension to Klipse that recognizes Org src blocks= (in
>> html) might be nice.
>>
> I think that should be pretty straighforward.

Yeah, the link in Bastien's twitter post shows there's alrea= dy a setting
for it

=C2=A0 =C2=A0 <script type=3D"text/javascript">window.= klipse_settings =3D {selector: '.src-clojure'};</script>

I don=E2=80=99t know if much more support is needed.=C2=A0 We add some auto= matic
configuration scripting or add a per-block switch for enabling klipse.

Two more little things. H= TML blocks can't use the standard editor so they need an extra attribut= e `data-editor-style=3D"html"`

Also, Klipse supports including comma-separ= ated external scripts to the execution environment with the `data-external-= libs` attribute

I have been using
#+ATTR_HTML :code_attribs da= ta-external-libs=3D"http://jq= uery.org/jquery.js,./lib/01.js".=C2=A0 I'm doing it in ta= ndem with the :tangle header, exporting previous code snippets and adding t= hem to the execution environment as I go (just for fun).=C2=A0 I don't = know if there's a better way to do this, potentially maybe trying to pa= rtially co-ordinate the execution environments for klipse and org so that e= xecuting code in org and in the html export gives similar results.=C2=A0 Se= ems a little ambitious.=C2=A0
=
Also, it would be nice if klipse had an elisp REPL si= nce so many org users blog about elisp.=C2=A0

=E2=80=8BFor that, one n= eeds to find (or to write) an elisp evaluation in javascript.=E2=80=8B=C2=A0

<= div class=3D"gmail_quote m_5439292871784883490gmail_msg">
=C2=A0
>> The Klipse license is GPL3.
>>
>
> Is org GPL2 or GPL3? Are there any compatibility issues between the tw= o?

No, it was meant as a compliment of a sort.

:-)
--001a113ead92a0c3030543a4bab5-- 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: Thu, 15 Dec 2016 03:10:20 +0100 Message-ID: <87bmwevt6b.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]:60750) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cHLV6-00038P-Nm for emacs-orgmode@gnu.org; Wed, 14 Dec 2016 21:10:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cHLV3-0003py-IS for emacs-orgmode@gnu.org; Wed, 14 Dec 2016 21:10:28 -0500 Received: from box.bzg.io ([46.101.205.100]:44007) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cHLV3-0003pm-9B for emacs-orgmode@gnu.org; Wed, 14 Dec 2016 21:10:25 -0500 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: Matt Price Cc: Yehonathan Sharvit , Org Mode , Rasmus Hi Matt, Matt Price writes: > Two more little things. HTML blocks can't use the standard editor so > they need an extra attribute `data-editor-style="html"` I'm not sure what you mean here: can you give an example? > Also, it would be nice if klipse had an elisp REPL since so many org > users blog about elisp. Seems rather ambitious but I agree this would be fun! -- Bastien 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-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: allow live execution of code snippets in html export Date: Thu, 15 Dec 2016 11:07:13 +0100 Message-ID: <87d1gtfqum.fsf@bzg.fr> References: <87mvfzzu4s.fsf@gmx.us> <877f72zux4.fsf@gmx.us> <87d1gukd9y.fsf@bzg.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41896) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cHSwy-0003Qa-LM for emacs-orgmode@gnu.org; Thu, 15 Dec 2016 05:07:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cHSwv-0006wk-HS for emacs-orgmode@gnu.org; Thu, 15 Dec 2016 05:07:44 -0500 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: Matt Price Cc: Yehonathan Sharvit , Org Mode , Rasmus Hi Matt, Matt Price writes: > Would we need a switch to permit the old syntax for people with > complex setups who don't want to change? Yes. We need to be more careful on being backward compatible. > - 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.

Yes.

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

Yep, indeed -- I have just this in my emacs.el for inline js:

(add-to-list 'org-src-lang-modes '("inline-js" . javascript))
(defvar org-babel-default-header-args:inline-js
  '((:results . "html")
    (:exports . "results")))
(defun org-babel-execute:inline-js (body _params)
  (format "" body))

Maybe this could be made available too.

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

I will think more about this.

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

One way to solve this on Yehonathan's side is to update klipse.js and
follow the instruction on librejs on how to make librejs accept the js
code as "safe":

https://www.gnu.org/software/librejs/free-your-javascript.html

I don't know how much work is involved in this, though.

--=20
 Bastien

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: Thu, 15 Dec 2016 10:50:22 -0500
Message-ID: 
References: 
	<87mvfzzu4s.fsf@gmx.us>
	
	<877f72zux4.fsf@gmx.us> <87d1gukd9y.fsf@bzg.fr>
	
	<87d1gtfqum.fsf@bzg.fr>
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=001a113ea2064d37a00543b469ac
Return-path: 
Received: from eggs.gnu.org ([2001:4830:134:3::10]:48989)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from ) id 1cHYJd-0006oc-Jh
	for emacs-orgmode@gnu.org; Thu, 15 Dec 2016 10:51:30 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from ) id 1cHYJc-0000Y1-GL
	for emacs-orgmode@gnu.org; Thu, 15 Dec 2016 10:51:29 -0500
In-Reply-To: <87d1gtfqum.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 
Cc: Yehonathan Sharvit , Org Mode , Rasmus 

--001a113ea2064d37a00543b469ac
Content-Type: text/plain; charset=UTF-8

On Thu, Dec 15, 2016 at 5:07 AM, Bastien  wrote:

> Hi Matt,
>
> Matt Price  writes:
>
> > Would we need a switch to permit the old syntax for people with
> > complex setups who don't want to change?
>
> Yes.  We need to be more careful on being backward compatible.
>
> The new patch in that other thread does this.


> >     - 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.
>
> Yes.
>


> > This seems like a good idea and pretty easy.
>
> I will think more about this.
>
> > 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?
>
> One way to solve this on Yehonathan's side is to update klipse.js and
> follow the instruction on librejs on how to make librejs accept the js
> code as "safe":
>
> https://www.gnu.org/software/librejs/free-your-javascript.html
>
> I don't know how much work is involved in this, though.
>

I think you just have to add two lines to non-minified scripts, and one
more to minified scripts:
https://www.gnu.org/software/librejs/free-your-javascript.html#magnet-link-license

Yehonathan, would you bewilling to do this?


> --
>  Bastien
>

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



On Thu, Dec 15, 2016 at 5:07 AM, Bastien <bzg@gnu.org> wrote:=
Hi Matt,

Matt Price <moptop99@gmail.com= > writes:

> Would we need a switch to permit the old= syntax for people with
> complex setups who don't want to change?

Yes.=C2=A0 We need to be more careful on being backward compatible.<= br>
The new patch in that o= ther thread does this.
=C2=A0
>=C2=A0 =C2=A0 =C2=A0- make src-clojure in <pre class=3D"src src= -clojure"> customizable
>=C2=A0 =C2=A0 =C2=A0?
>
> 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.

Yes.
=C2=A0

> This seems like a good idea and pretty easy.

I will think more about this.

> I odn't really quite understand the problem and solution parameter= s.=C2=A0
> Since Yehonathan is here on this thread and enthusiastic about
> helping out: is there something he could do to make this feasible for<= br> > us?=C2=A0 Or by "more general mechanism" do you mean some th= ird way
> between bundling and linking to?

One way to solve this on Yehonathan's side is to update klipse.j= s and
follow the instruction on librejs on how to make librejs accept the js
code as "safe":

https://www.gnu.org/software/libr= ejs/free-your-javascript.html

I don't know how much work is involved in this, though.

I think you just have to add two lines to non-minified= scripts, and one more to minified scripts:
https://= www.gnu.org/software/librejs/free-your-javascript.html#magnet-link-license<= /a>

=


--
=C2=A0Bastien

--001a113ea2064d37a00543b469ac-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yehonathan Sharvit Subject: Re: allow live execution of code snippets in html export Date: Thu, 15 Dec 2016 22:55:09 +0200 Message-ID: References: <87mvfzzu4s.fsf@gmx.us> <877f72zux4.fsf@gmx.us> <87d1gukd9y.fsf@bzg.fr> <87d1gtfqum.fsf@bzg.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114848304e0aa90543b8ab35 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49061) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cHd3a-0002P1-67 for emacs-orgmode@gnu.org; Thu, 15 Dec 2016 15:55:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cHd3Z-0006Z4-17 for emacs-orgmode@gnu.org; Thu, 15 Dec 2016 15:55:14 -0500 In-Reply-To: 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: Matt Price Cc: Bastien , Org Mode , Rasmus --001a114848304e0aa90543b8ab35 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, Dec 15, 2016 at 5:50 PM, Matt Price wrote: > > > On Thu, Dec 15, 2016 at 5:07 AM, Bastien wrote: > >> Hi Matt, >> >> Matt Price writes: >> >> > Would we need a switch to permit the old syntax for people with >> > complex setups who don't want to change? >> >> Yes. We need to be more careful on being backward compatible. >> >> The new patch in that other thread does this. > > >> > - 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.
>>
>> Yes.
>>
>
>
>> > This seems like a good idea and pretty easy.
>>
>> I will think more about this.
>>
>> > 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?
>>
>> One way to solve this on Yehonathan's side is to update klipse.js and
>> follow the instruction on librejs on how to make librejs accept the js
>> code as "safe":
>>
>> https://www.gnu.org/software/librejs/free-your-javascript.html
>>
>> I don't know how much work is involved in this, though.
>>
>
> I think you just have to add two lines to non-minified scripts, and one
> more to minified scripts:
> https://www.gnu.org/software/librejs/free-your-javascript.
> html#magnet-link-license
>
> Yehonathan, would you bewilling to do this?
>
=E2=80=8BSure. Will do it tomorrow.=E2=80=8B


>
>
>
>> --
>>  Bastien
>>
>
>

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



On Thu, Dec 15, 2016 at 5:50 PM,= Matt Price <moptop99@gmail.com> wrote:


On Thu, Dec 15, 2016 at 5:07 AM, Bastie= n <bz= g@gnu.org> wrote:
Hi Matt,

Matt Price <mopt= op99@gmail.com> writes:

> Would we need a swi= tch to permit the old syntax for people with
> complex setups who don't want to change?

Yes.=C2=A0 We need to be more careful on being backward compatible.<= br>
=
The new patch in that other thread does this.
=C2=A0
>=C2=A0 =C2=A0 =C2=A0- make src-clojure in <pre class=3D"src src= -clojure"> customizable
>=C2=A0 =C2=A0 =C2=A0?
>
> 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.

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

I will think more about this.

> I odn't really quite understand the problem and solution parameter= s.=C2=A0
> Since Yehonathan is here on this thread and enthusiastic about
> helping out: is there something he could do to make this feasible for<= br> > us?=C2=A0 Or by "more general mechanism" do you mean some th= ird way
> between bundling and linking to?

One way to solve this on Yehonathan's side is to update klipse.j= s and
follow the instruction on librejs on how to make librejs accept the js
code as "safe":

https://www.gnu.org/software/libr= ejs/free-your-javascript.html

I don't know how much work is involved in this, though.

I think you just have to add two lines to non-m= inified scripts, and one more to minified scripts:
https://www.gnu.org/software/librejs/free-your-javasc= ript.html#magnet-link-license

Yehonathan, would = you bewilling to do this?
=E2=80=8BSure. Will do it tomo= rrow.=E2=80=8B
=C2=A0


<= br> --
=C2=A0Bastien


--001a114848304e0aa90543b8ab35-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yehonathan Sharvit Subject: Re: allow live execution of code snippets in html export Date: Sun, 18 Dec 2016 03:25:04 +0000 Message-ID: References: <87mvfzzu4s.fsf@gmx.us> <877f72zux4.fsf@gmx.us> <87d1gukd9y.fsf@bzg.fr> <87d1gtfqum.fsf@bzg.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c0775800095990543e65af3 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57046) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cIS6C-0005h6-TY for emacs-orgmode@gnu.org; Sat, 17 Dec 2016 22:25:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cIS6B-0003MR-Ej for emacs-orgmode@gnu.org; Sat, 17 Dec 2016 22:25:20 -0500 In-Reply-To: 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: Matt Price Cc: Bastien , Org Mode , Rasmus --94eb2c0775800095990543e65af3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Done On Thu, 15 Dec 2016 at 22:55 Yehonathan Sharvit wrote: > On Thu, Dec 15, 2016 at 5:50 PM, Matt Price wrote: > > > > On Thu, Dec 15, 2016 at 5:07 AM, Bastien wrote: > > Hi Matt, > > Matt Price writes: > > > Would we need a switch to permit the old syntax for people with > > complex setups who don't want to change? > > Yes. We need to be more careful on being backward compatible. > > The new patch in that other thread does this. > > > > - 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.
>
> Yes.
>
>
>
> > This seems like a good idea and pretty easy.
>
> I will think more about this.
>
> > 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?
>
> One way to solve this on Yehonathan's side is to update klipse.js and
> follow the instruction on librejs on how to make librejs accept the js
> code as "safe":
>
> https://www.gnu.org/software/librejs/free-your-javascript.html
>
> I don't know how much work is involved in this, though.
>
>
> I think you just have to add two lines to non-minified scripts, and one
> more to minified scripts:
>
> https://www.gnu.org/software/librejs/free-your-javascript.html#magnet-lin=
k-license
>
> Yehonathan, would you bewilling to do this?
>
> =E2=80=8BSure. Will do it tomorrow.=E2=80=8B
>
>
>
>
>
> --
>  Bastien
>
>
>
>

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

Done

= On Thu, 15 Dec 2016 at 22:55 Yehonathan Sharvit <viebel@gmail.com> wrote:
On Thu, Dec 15, 2016 at 5:50 = PM, Matt Price <moptop99@gmail.co= m> wrote:

<= div class=3D"gmail_extra gmail_msg">
On Thu, Dec 15, 2016 at 5:0= 7 AM, Bastien <bzg@gnu.org> wrote:
Hi Matt,

Matt Price <moptop99@gmail.com> writes:

> Would we need a switch to permit the old syntax for people wit= h
> complex setups who don't want to change?

Yes.=C2=A0 We need to be more careful on being backward compatible.<= br class=3D"gmail_msg">
The new patch in that other thread does this.
=C2= =A0
>=C2=A0 =C2=A0 =C2=A0- make src-clojure in <pre class=3D"src src= -clojure"> customizable
>=C2=A0 =C2=A0 =C2=A0?
>
> 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.

Yes.
=C2=A0

> This seems like a good idea and pretty easy.

I will think more about this.

> I odn't really quite understand the problem and solution parameter= s.=C2=A0
> Since Yehonathan is here on this thread and enthusiastic about
> helping out: is there something he could do to make this feasible for<= br class=3D"gmail_msg"> > us?=C2=A0 Or by "more general mechanism" do you mean some th= ird way
> between bundling and linking to?

One way to solve this on Yehonathan's side is to update klipse.j= s and
follow the instruction on librejs on how to make librejs accept the js
code as "safe":

https://www.gnu.or= g/software/librejs/free-your-javascript.html

I don't know how much work is involved in this, though.

I think you just have to add two lines to = non-minified scripts, and one more to minified scripts:
https://www.g= nu.org/software/librejs/free-your-javascript.html#magnet-link-license
Yehonathan, would you bewilling to do this?
= =E2=80=8BSure. Will do it tomorrow.=E2=80=8B
=C2=A0



--
=C2=A0Bastien


--94eb2c0775800095990543e65af3--