Jinja examples
This page is a mini cheat-sheet for Jinja, the language you
write inside HTML templates. Open templates/index.html next to
the page in your browser to see how each part is made.
1. Show a variable
Today's chef is: Grandma
2. Filters (change how a value looks)
- Uppercase: GRANDMA
- Number of recipes: 3
3. if / else
There are 3 recipe(s) today.
4. for loop
- 1. Pancakes
- 2. Tomato Soup
- 3. Apple Pie