izar / pytm

A Pythonic framework for threat modeling

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Replace custom template engine with Jinja2

Thorsten-Sick opened this issue · comments

Replacing the custom template engine with Jinja2 would remove a bunch of custom code.
Jinja2 is more powerful and flexible.

https://jinja.palletsprojects.com/en/2.10.x/

Early 2024 I would have time to do that and adjust the existing templates.

This is a definite possibility for NG. The thing is that one of the basic premises of the project was to have as little external dependencies as possible - but it might be time to move away from that.

Also, about the plugin engine - I think we should definitely go to NG with it, what do you SAY @colesmj ? My worry is to end up with two ways of having rules and making it more difficult for people to add rules, without clear reasoning. I'd prefer a clean break and move to the new ways, leaving people on 1.x if they prefer that functionality rather than potentially breaking running stuff.