Skip to main content

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


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

jinja2_matrix_filters-0.1.0-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page