I really love the way you applied Jinja logic on this code, but i have a question, please how can i write an else loop?
You are viewing a single comment's thread from:
I really love the way you applied Jinja logic on this code, but i have a question, please how can i write an else loop?
The else boolean is also written similarly to the elif and even the for loop
for instance with jinja we can say
#assuming that we already have our if or if and elif statements {% else %} {<p>whatever content you would like to display</p> {%endelse%}
Hope that helps