Skip to content Skip to sidebar Skip to footer
Showing posts with the label Jinja2

Adding Jinja Template Dynamically

I have a jinja template that is the only content inside a set of div tags. {% include 'tem… Read more Adding Jinja Template Dynamically

Why Does This Jinja Macro Render Text Instead Of Html?

I have the following template called post-macro, but when I call the macro in the page.html templat… Read more Why Does This Jinja Macro Render Text Instead Of Html?

Jinja - Is There Any Built-in Variable To Get Current Html Page Name?

i'm very new to Jinja and Flask I want to set different background color in the navigation bar … Read more Jinja - Is There Any Built-in Variable To Get Current Html Page Name?

How To Format Jinja Tables

I have a table that I am trying to display a table properly on a flask HTML site. my python file is… Read more How To Format Jinja Tables

Range Not Working In For Loop

My for loop is not working and I'm not sure why. This is the loop: {% for i in range({{text|len… Read more Range Not Working In For Loop

Insert The Folium Maps Into The Jinja Template

I want to insert follium map into the jinja template. run.py from flask import Flask, render_templa… Read more Insert The Folium Maps Into The Jinja Template