federicotdn / verb

Organize and send HTTP requests from Emacs
https://melpa.org/#/verb
GNU General Public License v3.0
545 stars 20 forks source link

verb-var does not accept var from og-mode bable block #33

Closed davidshen84 closed 3 years ago

davidshen84 commented 3 years ago

When trying to evaluate the 2nd block, Emacs prompted to input the value for v. Apparently, the verb-var function cannot read values provided by the :var keyword.

     #+name: ex
     #+begin_example
     json
     #+end_example

     #+begin_src verb :var v=ex
get https://reqbin.com/echo/get/{{(verb-var v)}}

     #+end_src
federicotdn commented 3 years ago

That is correct, Verb currently does not know how to read var Babel header arguments.

federicotdn commented 3 years ago

Implemented in https://github.com/federicotdn/verb/commit/f9e69bf42eb8108aeee020ed3f58f456e042967f.