reconstruct jinja2 template