ejs icon indicating copy to clipboard operation
ejs copied to clipboard

自定义函数 ejs。helper

Open birdsli opened this issue 7 years ago • 3 comments

通过src 的方式引入ejs, 用ejs.filters自定义函数,一直报错,请问到底是怎么定义函数的?还是说要通过npm install 然后 require 进来 才可以?

birdsli avatar Mar 23 '18 08:03 birdsli

Very sorry, I don't speak or read Chinese -- and Google Translate doesn't provide an understandable translation. Could you simplify this, or post a translation?

mde avatar Mar 25 '18 23:03 mde

I import ejs which have self defined function by ejs.filter method through html src property, and this action always report error, please tell me how to define a ejs function(JS fucntion of nodejs? JS funtion Of html)? Are there a another way of import function by npm install and require it?

napasa avatar Apr 24 '18 02:04 napasa

通过src 的方式引入ejs, 用ejs.filters自定义函数,一直报错,请问到底是怎么定义函数的?还是说要通过npm install 然后 require 进来 才可以?

兄弟,你是来搞笑的吗?你也认为中文是全世界通用的语言吗?哈哈哈😝

newpanjing avatar Dec 13 '18 03:12 newpanjing