I'm a beginner org-mode user. Is there a way to remove baseUrl being duplicated in each block like the following one?
#+NAME: request-something
#+HEADER: :var baseUrl="http://localhost:3000"
#+HEADER: :var email="[email protected]"
#+BEGIN_SRC http
POST ${baseUrl}/api/foo
Content-Type: application/json
{
"email": "${email}",
}
#+END_SRC
I've tried to extract it as
#+NAME: baseUrl
| http://localhost:3000 |
but keep getting "cannot resolve a template to values" ob-http error trying to read it in src block