mirror of https://github.com/nanoy42/coope
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
389 B
16 lines
389 B
|
|
from jinja2 import Environment
|
|
|
|
from django.template.defaultfilters import register
|
|
|
|
from django_tex.filters import FILTERS as tex_specific_filters
|
|
|
|
# Django's built-in filters ...
|
|
filters = register.filters
|
|
# ... updated with tex specific filters
|
|
filters.update(tex_specific_filters)
|
|
|
|
def environment(**options):
|
|
env = Environment(**options)
|
|
env.filters = filters
|
|
return env
|
|
|