diff options
author | Vincent Ambo <tazjin@gmail.com> | 2018-05-08T09·15+0200 |
---|---|---|
committer | Vincent Ambo <github@tazj.in> | 2018-05-08T09·23+0200 |
commit | b8c32640196618b697b3c6ca58d416097f87dd3d (patch) | |
tree | 5dd1bc9e5b1db70ff6d39b890bd45438703dbdf0 /kontemplate.rb | |
parent | 84dcc294bfe0c5037efa1cf1e98aaf0d2727fbb7 (diff) |
fix(main): Handle errors & logic when templating to directory
This does several changes to the new "template to directory" feature introduced in the previous commit: 1. Errors are now "handled". In classic Go-style, it is of course all too easy to do absolutely nothing with errors, but we can't have that. I'm onto you, Renee French's husband! 2. Resource sets containing similarly named files are now templated correctly by prepending the resource set name to the filename. 3. In the same vein as the previous point, nested resource sets are now also output correctly by replacing slashes (`/`) with dashes (`-`) to guarantee that the output files are a flat list. Some minor cosmetic fixes have also been applied.
Diffstat (limited to 'kontemplate.rb')
0 files changed, 0 insertions, 0 deletions