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