From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: including external file in src block execution; ATTR_HTML on src blocks Date: Mon, 12 Dec 2016 09:12:07 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114536386145d8054376b0e6 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35075) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGRN0-00005Q-SC for emacs-orgmode@gnu.org; Mon, 12 Dec 2016 09:14:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cGRMv-0000Uv-DY for emacs-orgmode@gnu.org; Mon, 12 Dec 2016 09:14:22 -0500 Received: from mail-io0-f182.google.com ([209.85.223.182]:35076) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cGRMv-0000NR-8G for emacs-orgmode@gnu.org; Mon, 12 Dec 2016 09:14:17 -0500 Received: by mail-io0-f182.google.com with SMTP id h30so172247823iod.2 for ; Mon, 12 Dec 2016 06:13:56 -0800 (PST) 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: Org Mode --001a114536386145d8054376b0e6 Content-Type: text/plain; charset=UTF-8 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
 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

--001a114536386145d8054376b0e6
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

=
1. can I pass this html attribute to the <pre><code> block= somehow? ATTR_HTML doesn't seem to work.=C2=A0 Is this a bug? If so, s= hould I try to fix it? If not, is there a simple way to use header argument= s to pass information down? I am already rewriting the exporter's src-b= lock export function, so I can try to accomplish what I need to in that con= text.=C2=A0
2. I'd like to be able to test my code direc= tly in org (since I'm a lousy coder and a clumsy typist). Can I tell or= g to load other files before executing a src block?

Thank= you!
Mat


--001a114536386145d8054376b0e6--