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 :
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
Metadata
Release files for Flask-EscapeJSe 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| Flask-EscapeJSe-1.0.0.tar.gz | 2.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Flask_EscapeJSe-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.3 kB
Release files / Flask-EscapeJSe-1.0.0.tar.gz
| Download URL | Flask-EscapeJSe-1.0.0.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
840f3afa5b5ef38908ba3490f3d27f10f39483c1169614a1ec7978ece861e057
|
|
BLAKE2b-256 checksum How to use checksums |
344f9d814d507e9e044d5609808ea16567fe7dd3d5fc925dec99e28d3dc28f24
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.7
|
Release files / Flask_EscapeJSe-1.0.0-py3-none-any.whl
| Download URL | Flask_EscapeJSe-1.0.0-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b07bbef67d709201d44b16c781e1ceee517acf2e4c542cc03b52fcfaba0530cc
|
|
BLAKE2b-256 checksum How to use checksums |
6254cb469f6d2a552eecb5b9460bfbcea9d4dd6b168ca51c01afa069779209d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.7
|
Security for Flask-EscapeJSe 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.