tj / ejs

Embedded JavaScript templates for node
4.47k stars 512 forks source link

EJS include error #230

Closed zeroN1 closed 7 years ago

zeroN1 commented 7 years ago

Hi,

I am trying to include some helper functions for ejs in my view file that I have written. I have tried: <% include helpers.ejs %> Then, in my view file: <% module_start('$body', [{name:'display', value:'block'}], 'body'); %> However, I end up with the following error: Reference Error: module_start is not defined How do I fix this?

mde commented 7 years ago

This version of EJS is no longer supported. The current version is here: https://github.com/mde/ejs