emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matt Price <moptop99@gmail.com>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: including external file in src block execution; ATTR_HTML on src blocks
Date: Mon, 12 Dec 2016 09:12:07 -0500	[thread overview]
Message-ID: <CAN_Dec8aRV+Pmbnh5gjk7=8X0GYY7RSF9_zcmySXWBuwFvs8pQ@mail.gmail.com> (raw)

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

I use org to write my lecture notes, and have started using klipse in those
exported notes to execute code snippets in a browser environment (
http://matt.hackinghistory.ca/2016/12/11/org-mode-run-code-live-in-a-reveal-slideshow-with-klipse/
). Sometimes I would like to set up the javascript environment with some
additional libraries, either local or web-based. Klipse lets you do this
with a custom data- attribute.

My questions are:
1. can I pass this html attribute to the <pre><code> block somehow?
ATTR_HTML doesn't seem to work.  Is this a bug? If so, should I try to fix
it? If not, is there a simple way to use header arguments to pass
information down? I am already rewriting the exporter's src-block export
function, so I can try to accomplish what I need to in that context.
2. I'd like to be able to test my code directly in org (since I'm a lousy
coder and a clumsy typist). Can I tell org to load other files before
executing a src block?

Thank you!
Mat

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

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

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-12 14:12 Matt Price [this message]
2016-12-12 17:16 ` including external file in src block execution; ATTR_HTML on src blocks Charles C. Berry
2016-12-12 20:53   ` Matt Price
2016-12-13  3:52     ` Charles C. Berry
     [not found]       ` <CAN_Dec8=72-TvAGD82=tKLPUEO6qD4Mub4RV-hXUrVReHDqRyQ@mail.gmail.com>
2016-12-13 14:44         ` Fwd: " Matt Price
2016-12-14  4:08           ` Charles C. Berry

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='CAN_Dec8aRV+Pmbnh5gjk7=8X0GYY7RSF9_zcmySXWBuwFvs8pQ@mail.gmail.com' \
    --to=moptop99@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).