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

How To Make Tojson() Filter In Jinja2 Output Unicode Instead Of Escape Sequences?

My template is used for JS let SETTINGS = {{settings|tojson(4)}}; My settings is a dict {'name… Read more How To Make Tojson() Filter In Jinja2 Output Unicode Instead Of Escape Sequences?

Escaping Jinja Template For Javascript Place Holder

I want to pass a javascript variable ${channels[i]} to my jinja2 template as a placeholder for the… Read more Escaping Jinja Template For Javascript Place Holder

How To Access External Javascript Files Through Jinja[flask]?

I wanna know whether i can access external javascript files through jinja? It's working well wi… Read more How To Access External Javascript Files Through Jinja[flask]?