From 4e84f496adb538db3d3fc75134d6e05086332bf9 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sun, 27 Jun 2021 15:27:05 -0400 Subject: org-mode code block headers --- org/meta_conf_make_meta.org | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'org/meta_conf_make_meta.org') diff --git a/org/meta_conf_make_meta.org b/org/meta_conf_make_meta.org index 7d15135..7c0d9ac 100644 --- a/org/meta_conf_make_meta.org +++ b/org/meta_conf_make_meta.org @@ -14,6 +14,7 @@ #+PROPERTY: header-args+ :results no #+PROPERTY: header-args+ :cache no #+PROPERTY: header-args+ :padline no +#+PROPERTY: header-args+ :mkdirp yes [[./spine.org][spine]] [[./][org/]] * generic @@ -83,7 +84,8 @@ import doc_reform.meta.conf_make_meta_structs; ** struct ConfComposite -#+BEGIN_SRC d :tangle "../src/doc_reform/meta/conf_make_meta_structs.d" +#+HEADER: :tangle "../src/doc_reform/meta/conf_make_meta_structs.d" +#+BEGIN_SRC d <> module doc_reform.meta.conf_make_meta_structs; <> @@ -397,7 +399,8 @@ JSONValue config_jsonstr = `{ * YAML to spineStruct :module:conf_make_meta:yaml: ** _module template_ -#+BEGIN_SRC d :tangle "../src/doc_reform/meta/conf_make_meta_yaml.d" +#+HEADER: :tangle "../src/doc_reform/meta/conf_make_meta_yaml.d" +#+BEGIN_SRC d <> /++ yaml headers
@@ -1419,7 +1422,8 @@ if ("rights" in _yaml * JSON to spineStruct :module:conf_make_meta:json: ** _module template_ -#+BEGIN_SRC d :tangle "../src/doc_reform/meta/conf_make_meta_json.d" +#+HEADER: :tangle "../src/doc_reform/meta/conf_make_meta_json.d" +#+BEGIN_SRC d <> /++ json headers
@@ -2087,7 +2091,8 @@ if ("rights" in _json.object) { ** 1. parse Yaml config return spineStruct -#+BEGIN_SRC d :tangle "../src/doc_reform/meta/conf_make_meta_yaml.d" +#+HEADER: :tangle "../src/doc_reform/meta/conf_make_meta_yaml.d" +#+BEGIN_SRC d <> template configParseYAMLreturnSpineStruct() { import dyaml; @@ -2125,7 +2130,8 @@ template configParseYAMLreturnSpineStruct() { ** 2. parse YAML header to +(JSON then)+ Struct -#+BEGIN_SRC d :tangle "../src/doc_reform/meta/conf_make_meta_yaml.d" +#+HEADER: :tangle "../src/doc_reform/meta/conf_make_meta_yaml.d" +#+BEGIN_SRC d <> template docHeaderMakeAndMetaTupYamlExtractAndConvertToStruct() { import -- cgit v1.2.3