diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/sdp.d | 8 | ||||
-rw-r--r-- | src/sdp/output_hub.d | 28 |
2 files changed, 30 insertions, 6 deletions
@@ -14,11 +14,7 @@ import ao_read_config_files, ao_read_source_files, ao_rgx, - output_hub, - output_epub, - output_html, - output_xhtmls, - source_sisupod; + output_hub; /+ sdlang http://sdlang.org +/ import sdlang; // sdlang.d /+ std +/ @@ -275,7 +271,7 @@ void main(string[] args) { } /+ ↓ output hub +/ if (!(_opt_action_bool["skip_output"])) { - outputHub(doc_abstraction, doc_matters); + outputHub!()(doc_abstraction, doc_matters); } scope(exit) { debug(checkdoc) { diff --git a/src/sdp/output_hub.d b/src/sdp/output_hub.d index 16fc120..f17a007 100644 --- a/src/sdp/output_hub.d +++ b/src/sdp/output_hub.d @@ -3,7 +3,35 @@ check & generate output types requested +/ template outputHub() { + private import + std.regex, + std.algorithm, + std.array, + std.container, + std.exception, + std.getopt, + std.json, + std.process, + std.stdio, + std.file, + std.path, + std.range, + std.regex, + std.string, + std.traits, + std.typecons, + std.uni, + std.utf, + ao_defaults, + output_epub, + output_html, + output_xhtmls, + source_sisupod; + import + ao_rgx, + output_xhtmls; void outputHub(C,D)(C contents, D doc_matters) { + mixin SiSUrgxInit; auto rgx = Rgx(); if (doc_matters.opt_action_bool["source"]) { /+ mixin outputSource; +/ |