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