python-dirtt icon indicating copy to clipboard operation
python-dirtt copied to clipboard

Templates are tightly coupled

Open rjmoggach opened this issue 9 years ago • 2 comments

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.

rjmoggach avatar Dec 12 '15 21:12 rjmoggach

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.

yoanisgil avatar Dec 12 '15 21:12 yoanisgil

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.

rjmoggach avatar Dec 13 '15 00:12 rjmoggach