From a74c05a756f541c314792a9f852c98db1f2b1aed Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Wed, 7 Dec 2016 17:28:38 -0500 Subject: 0.9.5 org files reorganized, tangles (code structure) to top of file --- org/output.org | 158 +++++++++++++++++++++++++++------------------------------ 1 file changed, 76 insertions(+), 82 deletions(-) (limited to 'org/output.org') diff --git a/org/output.org b/org/output.org index 8331a59..924540c 100644 --- a/org/output.org +++ b/org/output.org @@ -13,10 +13,84 @@ #+TAGS: assert(a) class(c) debug(d) mixin(m) sdp(s) tangle(T) template(t) WEB(W) noexport(n) [[./sdp.org][sdp]] [[./][org/]] -* output :output: +* Code Outline / Structure (tangles) :tangle: +** output hub template file [#A] + +#+BEGIN_SRC d :tangle ../src/sdp/output_hub.d +/++ + output hub
+ check & generate output types requested ++/ +template SiSUoutputHub() { + struct SDPoutput { + void hub(S)( + auto ref const S contents, + string[][string] document_section_keys_sequenced, + string[] html_segnames, + string[string][string] dochead_make, + string[string][string] dochead_meta, + string fn_src, + bool[string] opt_action_bool + ) { + auto rgx = Rgx(); + if (opt_action_bool["source"]) { + writeln("sisupod source"); + } + if (opt_action_bool["sisupod"]) { + writeln("sisupod source"); + } + if (opt_action_bool["text"]) { + writeln("text processing"); + } + if (opt_action_bool["html"]) { + mixin SiSUoutputHTML; + auto html=SDPoutputHTML(); + html.css_write; + html.scroll( + contents, + document_section_keys_sequenced, + dochead_make, + dochead_meta, + fn_src, + opt_action_bool + ); + } + if (opt_action_bool["epub"]) { + writeln("epub processing"); + } + if (opt_action_bool["pdf"]) { + writeln("pdf processing"); + } + if (opt_action_bool["odt"]) { + writeln("odt processing"); + } + if (opt_action_bool["sqlite"]) { + writeln("sqlite processing"); + } + if (opt_action_bool["postgresql"]) { + writeln("pgsql processing"); + } + } + } +} +#+END_SRC + +** templates outpt types (file, db)s +*** html + +#+BEGIN_SRC d :tangle ../src/sdp/output_html.d +template SiSUoutputHTML() { + struct SDPoutputHTML { + <> + <> + } +} +#+END_SRC + +* output functions :output: ** text :text: ** html [#A] :html: -*** html +*** html text objects **** html functions ***** html @@ -1603,86 +1677,6 @@ auto css_write() { ** odt :odt: ** sqlite [#B] :sqlite: ** pgsql :pgsql: -* tangles :tangle: -** code structure: :output.d: - -**** hub - -#+BEGIN_SRC d :tangle ../src/sdp/output_hub.d -/++ - output hub
- check & generate output types requested -+/ -template SiSUoutputHub() { - struct SDPoutput { - void hub(S)( - auto ref const S contents, - string[][string] document_section_keys_sequenced, - string[] html_segnames, - string[string][string] dochead_make, - string[string][string] dochead_meta, - string fn_src, - bool[string] opt_action_bool - ) { - auto rgx = Rgx(); - if (opt_action_bool["source"]) { - writeln("sisupod source"); - } - if (opt_action_bool["sisupod"]) { - writeln("sisupod source"); - } - if (opt_action_bool["text"]) { - writeln("text processing"); - } - if (opt_action_bool["html"]) { - mixin SiSUoutputHTML; - auto html=SDPoutputHTML(); - html.css_write; - html.scroll( - contents, - document_section_keys_sequenced, - dochead_make, - dochead_meta, - fn_src, - opt_action_bool - ); - } - if (opt_action_bool["epub"]) { - writeln("epub processing"); - } - if (opt_action_bool["pdf"]) { - writeln("pdf processing"); - } - if (opt_action_bool["odt"]) { - writeln("odt processing"); - } - if (opt_action_bool["sqlite"]) { - writeln("sqlite processing"); - } - if (opt_action_bool["postgresql"]) { - writeln("pgsql processing"); - } - } - } -} -#+END_SRC - -**** html - -#+BEGIN_SRC d :tangle ../src/sdp/output_html.d -template SiSUoutputHTML() { - struct SDPoutputHTML { - <> - <> - } -} -#+END_SRC - -*** notes - -0.6.6 using nested structs hub and outputs within it e.g. html -0.6.5 dmd had problems compiling with hub and outputs such as html as separate structs see comment - * +other+ ** example head -- cgit v1.2.3