Commit Graph

10 Commits

Author SHA1 Message Date
594a0b41d7 Add header and footer to the output document if not already present 2020-03-18 15:19:33 -04:00
4b69914181 Create output document from source doc instead of template
this preserves the formatting of the source document, which was being
modified in copying, at the cost of a little bit more complexity
fixes #1
2020-03-18 14:42:46 -04:00
862a1d9f63 Allow for copying to HeaderSection and FooterSection, as well as Body 2020-03-18 14:38:56 -04:00
c8840a817a Fix index 0 being treated as append due to incorrect conditional
0 is falsey, so `if (index) insert(index...) else append()` was
appending, instead of inserting at index 0. Wow that was stupid.
2020-03-18 14:33:06 -04:00
ebf76d2653 Create real output document and PDF 2020-03-17 19:00:27 -04:00
797a9c1623 Replace some vars with const and let
because `var` is evil
2020-03-17 16:59:44 -04:00
61ff5a5cc7 Add plain text replacement from spreadsheet contents 2020-03-17 16:56:00 -04:00
d5d0aae48b Rename menus to non-test text 2020-03-17 16:22:59 -04:00
5e1948421b Throw an error when the {{body}} insert point is missing 2020-03-17 16:08:32 -04:00
1dcb7f16fe Initial Commit, basic tranclusion working 2020-03-17 15:38:37 -04:00