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