From 334bb9c301bb72d5331a2e9e067211c18e5f7c69 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Mon, 23 Jan 2017 17:17:47 -0500 Subject: templates --- src/sdp/output_epub.d | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) (limited to 'src/sdp/output_epub.d') 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; -- cgit v1.2.3