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