Open tacman opened 2 months ago
Thoughts on this, @kbond? Or am I doing something wrong? I think the documentation is wrong, but I'd rather the code change to match the documentation, as I'd like to get rid of the fn_
prefix.
I need the prefix because of the twig feature I'm using to achieve this: https://twig.symfony.com/doc/3.x/advanced.html#dynamic-filters
While possible to add these functions directly to twig, this would reduce performance - especially when adding many functions.
Re: #17
I'd prefer to make the twig calls without the fn prefix. Or perhaps to prefix my application twig functions with app, for example.
It's awkward to need the fn, but since that's how it currently works, maybe you could make it configurable and default to fn , but allow none.
Could be