Show Menu
Cheatography

Jinja2 Cheat Sheet Cheat Sheet (DRAFT) by

Cheat Sheet for Jinja2

This is a draft cheat sheet. It is a work in progress and is not finished yet.

JINJA2 Cheat Sheet

 
 

Inheri­tance

 
<ht­ml>
<he­ad>
<ti­tle­>My Jinja {% block title %}{% endblock %} </t­itl­e>
</h­ead>
<bo­dy>
<div class=­"­con­tai­ner­">
<h2­>This is from the base templa­te<­/h2>
<br>
{ block content }{ endblock }
<br>
</d­iv>
</b­ody>
</h­tml>