node environment artTemplate with express how to use the function
want to use the filter of art-template
examples given on the official website
template.defaults.imports.dateFormat = function (date, format) {/ [code..] /};
template.defaults.imports.timestamp = function (value) {return value * 1000};
but template is not defined
do you want to expose template, somewhere so that it can be used in templates?
the development environment is as follows
windows 7 64bit Chinese version
node v8.11.1
npm 5.6.0
express 4.16.0