Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom filters? #213

Open
KieronWiltshire opened this issue Dec 7, 2015 · 1 comment
Open

Custom filters? #213

KieronWiltshire opened this issue Dec 7, 2015 · 1 comment

Comments

@KieronWiltshire
Copy link

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!

@mde
Copy link
Collaborator

mde commented Dec 8, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants