Here is a quick test:
* Test tangle will auto expand and substitute :var
#+begin_src js :tangle kk.js
console.log("hello, world!");
#+end_src
#+begin_src js :var name="chris" :tangle require-kk.js
// require("kk.js");
console.log("Hi, ", name);
#+end_src
#+RESULTS:
: Hi, chris
#+NAME: check w
I come up with an idea, use babel header argument :var to pass in the
absolute path of tangled file.
And ob-js will expand and replace that :var variable inside of JavaScript
src block.
So that you don't need to repeatly manually typing the absolute path of the
tangled file. Maybe it only one for "
Hello,
Eli Zaretskii writes:
>> From: Nicolas Goaziou
>> Date: Fri, 08 Dec 2017 18:08:57 +0100
>> Cc: dov.grobg...@gmail.com, 11...@debbugs.gnu.org
>>
>> For tests, we use `org-test-with-temp-text' macro, e.g.,
>>
>> (org-test-with-temp-text "| a | b |\n| c | d |"
>> ... do something in
On Sat, Dec 23, 2017, 1:57 AM Yasushi SHOJI wrote:
> I just tried rst exporter, which I just happen to be using, and it works
> great,
> with the following tiny patch. And the results is this.
>
> http://org-manual.readthedocs.io/en/latest/
>
> Info and orgmode.org/org.html is already super usefu
> Date: Sat, 23 Dec 2017 15:38:11 +0200
> From: Eli Zaretskii
> Cc: dov.grobg...@gmail.com, 11...@debbugs.gnu.org
>
> I found both methods doing well, so I'm going to show both, and let
> you decide which one is better.
On second thought, I think Method 2 is better, because it does exactly
what
> From: Nicolas Goaziou
> Date: Fri, 08 Dec 2017 18:08:57 +0100
> Cc: dov.grobg...@gmail.com, 11...@debbugs.gnu.org
>
> For tests, we use `org-test-with-temp-text' macro, e.g.,
>
> (org-test-with-temp-text "| a | b |\n| c | d |"
> ... do something in that buffer ...)
You didn't say that t
Hello,
Paul Dumais writes:
> Hi I was trying to use the new :show-process header argument for clojure in
> Org mode version 9.1.4 (9.1.4-13-g84cb63-elpaplus @
> (org-plus-contrib-20171218/)
>
> I get the following error:
> org-babel-insert-result: Wrong type argument: markerp, nil
IMO, this is
Hello,
"Stephen P. Schaefer" writes:
> I'm trying to use org-mode noweb syntax to deal with erlang code that
> involves bit strings. This is an example t.org file:
>
> #+STARTUP: indent
> * top level
>
> #+begin_src erlang :noweb yes :tangle hello.erl
> -module(hello).
> -export(hello).
>