Change the template strategy: allow custom templates from packages
Proposal:
- don't copy the templates at the root of the fairified project
- copy only the necessary templates in the report folder during render:
- use
.template_dependencies
file in the report folder and in the template folder to list necessary templates - syntax of the file is
[package]:[template name]
for examplefairify:inrae
- the
.template_dependencies
in the template folder ensures to process the dependencies in a recursion for copying the templates during render - use
on.exit
for deleting the templates after rendering
- use
- change all paths
../../templates
bytemplates