make general template for jinja2