Closed toddbellMSFT closed 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
Apologies, this was a local issue.
Someone put ejs.delimieter='\n'; in our codebase, which completely messesup the % replacements.
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