Integrate layout into jinja templates