-*- mode: org -*- #+TITLE: spine (doc_reform) output zip #+DESCRIPTION: documents - structuring, publishing in multiple formats & search #+AUTHOR: Ralph Amissah #+EMAIL: [[mailto:ralph.amissah@gmail.com][ralph.amissah@gmail.com]] #+COPYRIGHT: Copyright (C) 2015 - 2020 Ralph Amissah #+LANGUAGE: en #+STARTUP: content hideblocks hidestars noindent entitiespretty #+PROPERTY: header-args :exports code #+PROPERTY: header-args+ :noweb yes #+PROPERTY: header-args+ :eval no #+PROPERTY: header-args+ :results no #+PROPERTY: header-args+ :cache no #+PROPERTY: header-args+ :padline no - [[./spine.org][spine]] [[./][org/]] - [[./output_hub.org][output_hub]] * _zip_ :module:spine:create_zip_file: ** module template #+BEGIN_SRC d :tangle "../src/doc_reform/io_out/create_zip_file.d" module doc_reform.io_out.create_zip_file; template createZipFile() { import std.file, std.outbuffer, std.string, std.zip; @safe 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__