ejs icon indicating copy to clipboard operation
ejs copied to clipboard

Embedded JavaScript templates for node

Results 100 ejs issues
Sort by recently updated
recently updated
newest added

I am trying to update an element on the ejs file. I try to do it like this: `var ejsFile= new EJS({url: 'views/profile.ejs'}).update('divResults', response);` on top of the file i...

I saw an example here https://github.com/tj/ejs/blob/master/examples/client.html Is it possible to change ``` var html = ejs.render(users, { names: names }); ``` to ``` var html = ejs.render("home.ejs", { names: names...

How am I able to add my own filter? Basically I have created a permission system, now I want to be able to use that permission system within the view...

I found do this can fixed! /ejs/lib/ejs.js rows 287 //options.**proto** = options.locals; for(var key in options.locals) { options[key] = options.locals[key]; }

when i use the filters, i find something wrong。 in the line: https://github.com/tj/ejs/blob/master/lib/ejs.js#L57 ``` function filtered(js) { return js.substr(1).split('|').reduce(function(js, filter){ var parts = filter.split(':') , name = parts.shift() , args...

Does possible is use EJS on server side by v8js? I ask because in standard EJS call AJAX to get template from server. In this case we have template provide...

simply commenting lib/ejs.js line 158 out and this works: ``` if (!filename) throw new Error('filename option is required for includes'); ``` of course it would be nice to throw this...

Hi, thanks for working on EJS. The following filter has proven useful to me when dealing with possibly undefined keys: exports.default = function(str, val) {return str || val || '';}...

in package.json : "ejs": "latest", v2.3.1 is installed. When I exec node, it prompts an error. Error: ENOENT, no such file or directory '/includes/list.html' at Object.fs.openSync (fs.js:438:18) at Object.fs.readFileSync (fs.js:289:15)...