ejs
ejs copied to clipboard
Custom filters?
How am I able to add my own filter?
Basically I have created a permission system, now I want to be able to use that permission system within the view to only render specific elements. If someone can navigate me in the right direction, I'd very much appreciate it!
This version of EJS is no longer maintained. The current version (installable via NPM) is here: https://github.com/mde/ejs
The current version does not support filters. Your best bet is to pre-process the data before passing it to the render function.