diff options
author | Ralph Amissah <ralph@amissah.com> | 2017-01-23 17:17:47 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2019-04-10 15:14:14 -0400 |
commit | 334bb9c301bb72d5331a2e9e067211c18e5f7c69 (patch) | |
tree | 914d539ce4f228103da8bf465cbcf61a71f96498 /src/sdp/output_epub.d | |
parent | template, document head & body (diff) |
templates
Diffstat (limited to 'src/sdp/output_epub.d')
-rw-r--r-- | src/sdp/output_epub.d | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/src/sdp/output_epub.d b/src/sdp/output_epub.d index 90f0ca4..8faf9e1 100644 --- a/src/sdp/output_epub.d +++ b/src/sdp/output_epub.d @@ -316,15 +316,24 @@ template SiSUoutputEPub() { oebps_content_opf, ); } - void epub_write_output_files( - string fn_src, - string[] seg_filenames, - string[][string] doc_epub, - string mimetypes, - string meta_inf_container_xml, - string oebps_toc_ncx, - string oebps_content_opf, + void epub_write_output_files(Fn,FnS,De,Mt,Mic,Ot,Oc)( + Fn fn_src, + FnS seg_filenames, + De doc_epub, + Mt mimetypes, + Mic meta_inf_container_xml, + Ot oebps_toc_ncx, + Oc oebps_content_opf, ) { + debug(asserts){ + static assert(is(typeof(fn_src) == string)); + static assert(is(typeof(seg_filenames) == string[])); + static assert(is(typeof(doc_epub) == string[][string])); + static assert(is(typeof(mimetypes) == string)); + static assert(is(typeof(meta_inf_container_xml) == string)); + static assert(is(typeof(oebps_toc_ncx) == string)); + static assert(is(typeof(oebps_content_opf) == string)); + } mixin SiSUpaths; auto pth_epub = EpubPaths(); // doc = xhtml_format.scroll_head ~ doc_epub ~ xhtml_format.tail; |