emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Yehonathan Sharvit <viebel@gmail.com>
To: Matt Price <moptop99@gmail.com>, Rasmus <rasmus@gmx.us>
Cc: Bastien Guerry <bzg@bzg.fr>, Org Mode <emacs-orgmode@gnu.org>
Subject: Re: allow live execution of code snippets in html export
Date: Wed, 14 Dec 2016 23:07:47 +0200	[thread overview]
Message-ID: <CAMwuZb7xHEfUVVtBkaR5KwrL9bnGJ_hLBniLarBzuYvsoSU0dQ@mail.gmail.com> (raw)
In-Reply-To: <CAN_Dec8eKEyc0JBePC7KghKrgm7jthZJ4BEwhAn-kktmkZUfKQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2012 bytes --]

On Wed, 14 Dec 2016 at 19:55 Matt Price <moptop99@gmail.com> 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 already a setting
> for it
>
>     <script type="text/javascript">window.klipse_settings = {selector:
> '.src-clojure'};</script>
>
> I don’t know if much more support is needed.  We add some automatic
> 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="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="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.
>

​For that, one needs to find (or to write) an elisp evaluation in
javascript.​


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

[-- Attachment #2: Type: text/html, Size: 6258 bytes --]

  reply	other threads:[~2016-12-14 21:09 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-13 14:55 allow live execution of code snippets in html export Matt Price
2016-12-13 16:11 ` Rasmus
     [not found]   ` <CAN_Dec8cw4QNFhcS7G7ktuY-A9vQEUftKLX4fN9c1XJ1TjF0Wg@mail.gmail.com>
2016-12-14 10:06     ` Rasmus
2016-12-14 10:36       ` Bastien Guerry
2016-12-15  3:18         ` Matt Price
2016-12-15 10:07           ` Bastien
2016-12-15 15:50             ` Matt Price
2016-12-15 20:55               ` Yehonathan Sharvit
2016-12-18  3:25                 ` Yehonathan Sharvit
2016-12-14 17:55       ` Matt Price
2016-12-14 21:07         ` Yehonathan Sharvit [this message]
2016-12-15  2:10         ` Bastien Guerry
     [not found] <44cd312833be418b92f225baf0940026@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2016-12-13 15:39 ` Eric S Fraga

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAMwuZb7xHEfUVVtBkaR5KwrL9bnGJ_hLBniLarBzuYvsoSU0dQ@mail.gmail.com \
    --to=viebel@gmail.com \
    --cc=bzg@bzg.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=moptop99@gmail.com \
    --cc=rasmus@gmx.us \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).