python-dirtt
python-dirtt copied to clipboard
Templates are tightly coupled
Right now the templates are too tightly coupled to the library. This also goes for the included scripts. While they are helpful they should be moved to a different repo. We also need to fix the file template path as this is intrinsically a problem here.
Being a while since I worked on the library but it might be a good idea to let template be handle by external engines (Jinja2, etc). The trick is to make it as generic and easy to use as possible ... like relying on the file extension or a command line option which explicitly states the engine to be used.
me too - I like the simplicity of the template engine in here... the problem is the scripts are for one use case and they reference the templates that are installed in the python site_packages dir by default. I created another repo call python-dirtt-templates which has templates and scripts. Eventually I'm going to clean up this code and reference that repo for examples.