Metadata-Version: 2.1
Name: Flask-EscapeJSe
Version: 0.1.0
Summary: Escape curly braces in jinja template for use in JS         frameworks
Home-page: https://github.com/akhilharihar/Flask-EscapeJSe
Author: Akhil Harihar
Author-email: hariharakhil@gmail.com
License: MIT
Platform: any
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Framework :: Flask
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development
Classifier: Development Status :: 3 - Alpha
Requires-Python: >=3.0
Description-Content-Type: text/markdown
Requires-Dist: Flask
Requires-Dist: Jinja2

<!--
  Title: Escape curly braces in jinja template
  Description: Escape curly braces used by JavaScript frameworks to indicate a expression in jinja templates.
  Author: Akhil Harihar
  -->

# flask_escapejstv
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.

## Installing
Install and update using [pip](https://pip.pypa.io/en/stable/quickstart/) :
```
pip install Flask-EscapeJSe
```

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

```
from flask_escapejse import EscapeJSe

EscapeJSe(app)
```

Like other Flask extensions, you can register it lazily:

```
ejse = EscapeJSe()

def create_app():
    app = Flask(__name__)
    ejse.init_app(app)
```

## Usage
```
{{ "js_variable_name"|jse }}
```

For more information on jinja filters, visit [http://jinja.pocoo.org/docs/2.10/templates/#filters](http://jinja.pocoo.org/docs/2.10/templates/#filters)


