A Jinja plugin for handling Matrix data
Project description
Jinja2 Matrix Filters
Overview
Jinja2 Matrix Filters is a functionality extension to handle matrix data.
Included filters
- user_bridge_info
- user_bridge_prefix
- user_bridge_account_id
- user_homeserver
- location_message_geo_uri
- location_message_latitude
- location_message_longitude
- google_location_url
Install
pip install jinja2-matrix-filters
Usage
Typical usage with jinja2
from jinja2 import Environment
...
env = Environment(extensions=['jinja2_matrix_filters.MatrixFiltersExtension'])
...
# OR
from jinja2_matrix_filters import MatrixFiltersExtension
env = Environment(extensions=[MatrixFiltersExtension])
...
Include into cookiecutter
cookiecutter.json
{
"_extensions": ["jinja2_matrix_filters.MatrixFiltersExtension"]
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for jinja2_matrix_filters-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1565498fe3d760887c2cb4d773ca7dbbc56b00f18f1cdb692f71a52794a28087 |
|
MD5 | 3cf34f6755beb7523190683f0587bdb0 |
|
BLAKE2b-256 | 161d0fe3864d3001e83f692b4089f00fa1f0403e21111a0db4579a8b507ccc4a |