ssato / python-anyconfig

Python library provides common APIs to load and dump configuration files in various formats
MIT License
277 stars 31 forks source link

Support custom filters for template engine #91

Closed yujunz closed 6 years ago

yujunz commented 6 years ago

May I request a feature?

Sometimes I need to render jinja2 template with custom filters. It seems currently there is no way to register them in the template environment from python-anyconfig.

Maybe we can pass the filters using the argument ac_template and handle it when creating the template environment.

What do you think? @ssato