#+TITLE: doc_reform output zip #+AUTHOR: Ralph Amissah #+EMAIL: [[mailto:ralph.amissah@gmail.com][ralph.amissah@gmail.com]] #+DESCRIPTION: documents - structuring, publishing in multiple formats & search #+KEYWORDS #+LANGUAGE: en #+STARTUP: indent content hideblocks hidestars #+OPTIONS: H:3 num:nil toc:t \n:nil @:t ::t |:t ^:nil _:nil -:t f:t *:t <:t #+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc #+OPTIONS: author:nil email:nil creator:nil timestamp:nil #+PROPERTY: header-args :padline no :exports code :cache no :noweb yes #+EXPORT_SELECT_TAGS: export #+EXPORT_EXCLUDE_TAGS: noexport #+FILETAGS: :doc_reform:rel:output: #+TAGS: assert(a) class(c) debug(d) mixin(m) doc_reform(s) tangle(T) template(t) WEB(W) noexport(n) - [[./doc_reform.org][doc_reform]] [[./][org/]] - [[./output_hub.org][output_hub]] * _zip_ :module:doc_reform:create_zip_file: ** module template #+BEGIN_SRC d :tangle "../src/doc_reform/output/create_zip_file.d" module doc_reform.output.create_zip_file; template createZipFile() { import std.file; import std.outbuffer; import std.string; import std.zip; void createZipFile( string zip_file_name, void[] compressed_zip_data, ) { try { write(zip_file_name, compressed_zip_data); } catch (ZipException ex) { // Handle Errors } } } #+END_SRC * __END__