ejs icon indicating copy to clipboard operation
ejs copied to clipboard

Custom filters?

Open KieronWiltshire opened this issue 10 years ago • 1 comments

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!

KieronWiltshire avatar Dec 07 '15 12:12 KieronWiltshire

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.

mde avatar Dec 08 '15 06:12 mde