aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/output.org
diff options
context:
space:
mode:
Diffstat (limited to 'org/output.org')
-rw-r--r--org/output.org158
1 files changed, 76 insertions, 82 deletions
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<BR>
+ 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 {
+ <<output_html>>
+ <<output_html_css>>
+ }
+}
+#+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<BR>
- 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 {
- <<output_html>>
- <<output_html_css>>
- }
-}
-#+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