I am using Jinja2 as my template system. I have created a jinja2.py file and set environment to use custom template filters, etc. But i don't know how to set custom_processor via jinja2?
def environment(**options):
env = Environment(**options)
env.filters['datetime'] = format_datetime
env.globals.update({
'static': staticfiles_storage.url,
'url': reverse,
'thumbnail': thumbnail,
'customimagecrop':customimagecrop,
})
return env
Thanks