mattrobenolt / jinja2-cli

CLI for Jinja2
BSD 2-Clause "Simplified" License
506 stars 181 forks source link

Feature request: ipaddr filter #85

Open nicoaws opened 4 years ago

nicoaws commented 4 years ago

Would be nice to be able to use the ansible ipaddr filter in jinja2-cli.

mattrobenolt commented 4 years ago

@dustnic wanna try out https://github.com/mattrobenolt/jinja2-cli/pull/86 ?

This adds a new flag which allows you to import this. I tested this by doing:

$ jinja2 -f ansible.plugins.filter.ipaddr.ipaddr test.txt

Which allowed the filter to be imported and used correctly.

rddimon commented 6 months ago

Hi @nicoaws @mattrobenolt

I would really appreciate custom filters! Are going to add that feature?