Commit Graph

16 Commits

Author SHA1 Message Date
b7a301ba78 Lookup template ID from name instead of getting directly from sheet 2020-06-22 11:47:36 -04:00
e158e31bf1 Move output folder ID into a constant 2020-06-20 18:09:07 -04:00
023ffc6811 Minor formatting changes from prettier 2.0 2020-03-22 00:42:47 -04:00
76b4f2a73c Add function/menu item to generate document for each row in the sheet 2020-03-18 16:30:18 -04:00
2b377bbfca Delete old files with the same name as the generated output 2020-03-18 15:33:57 -04:00
df130c5d03 Change copyElement to a switch/case 2020-03-18 15:19:33 -04:00
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