mde / ejs

Embedded JavaScript templates -- http://ejs.co
Apache License 2.0
7.7k stars 841 forks source link

Example use on ejs.co does not work #693

Closed toddbellMSFT closed 2 years ago

toddbellMSFT commented 2 years ago

I tried copying pasting the code as is from ejs.co under the example Use tag

let ejs = require('ejs'); let people = ['geddy', 'neil', 'alex']; let html = ejs.render('<%= people.join(", "); %>', {people: people});

returns html as the ejs string <%= people.join","); %>

Not the expected geddy, neil, alex

toddbellMSFT commented 2 years ago

Apologies, this was a local issue.

Someone put ejs.delimieter='\n'; in our codebase, which completely messesup the % replacements.