Skip to main content

Escape curly braces in jinja template for use in JS frameworks

Project description


PyPI Build Status License: MIT

Flask extension which provides a filter to escape "curly" braces {{ }} in Jinja templates for use in JavaScript frameworks as few Javascript frameworks use "curly" braces to display the value of an expression or variable.


Install and update using pip :

pip install Flask-EscapeJSe

To enable this filter in your flask app, register this extension.

from flask_escapejse import EscapeJSe


Like other Flask extensions, you can register it lazily:

ejse = EscapeJSe()

def create_app():
    app = Flask(__name__)


{{ "js_variable_name"|jse }}

For more information on jinja filters, visit

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for Flask-EscapeJSe, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size Flask_EscapeJSe-1.0.0-py3-none-any.whl (3.2 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size Flask-EscapeJSe-1.0.0.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page