Open ndbroadbent opened 4 months ago
Sorry I found https://github.com/kpfleming/jinjanator-plugins
Is it possible to import a plugin locally instead of releasing it as a public package?
Absolutely, all that is required is that you install the plugin package into the same Python environment where you've installed 'jinjanator', and it will be found and available to your templates. There is no need to distribute the plugin package.
There's an example 'minimal' plugin which supports all the various plugin features in https://github.com/kpfleming/jinjanator/tree/main/tests/test_plugin; hopefully you will be able to see how to strip that down to just the 'filter' portion and then put your filter functions into it.
Hi there, I'm trying to switch to this tool from j2cli so I can run it on Python >= 3.12.3. I just have a few filters that my templates require (for my Home Assistant config):
I previously called it like this:
Is it possible to port this to jinjinator? Thanks a lot for working on this!