DEV Community

Discussion on: Multi-File Org-Babel Tangles with Include Directives

Collapse
 
enigmacurry profile image
Ryan McGuire

Org supports exporting to all sorts of file formats, and one of them is org itself.

Thank you! I almost thought this was going to work for me, but I can't use the #+PROPERTY: header-args line, because I have customized header-args for each code block individually. Each of my code blocks should be tangled to a different file. The only problem is that these block-level header args appear to be stripped out (!) by (org-export-to-file 'org export-file).

This, from the include file :

#+begin_src yaml :noweb yes :eval no :tangle src/thing.yaml
thing: whatever
#+end_src
Enter fullscreen mode Exit fullscreen mode

Becomes this, in the exported org document (Args are stripped!) :

#+begin_src yaml
thing: whatever
#+end_src
Enter fullscreen mode Exit fullscreen mode

So therefore no code blocks are tangled because none have the :tangle argument :(