On Mon, 1 May 2023 at 22:11, Mitch Berkson <[email protected]> wrote: > > I was not successful in adding a custom Jinja2 filter. I defined my filter > function foo in plugins/filters.py. In conf.py, I put: > from plugins.filters import foo > > JINJA_FILTERS = {'foo': foo} > > But when I build, foo is not found when rendering the template. Am I missing > a step?
The variable got renamed to TEMPLATE_FILTERS. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- You received this message because you are subscribed to the Google Groups "nikola-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nikola-discuss/CAMw%2Bj7JoUPrxhr183u%2BJVZCHSb7mYCmndxTTUo8jf7V-atW%3DFQ%40mail.gmail.com.
