template engin jinja2
templates
fix templating and enconding