Skip to content

How to add a filter #6

@yutingzhao1991

Description

@yutingzhao1991

If I want to add a filter in ejs, I can to it like this:

ejs.filters.last = function(obj) {
  return obj[obj.length - 1];
};

But if I want do it with ejs-mate, how to do this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions