• function

render can.EJS.prototype.render


Render a view object with data and helpers.

ejs.render(data[, helpers])


  1. data {Object}Optional

    The data to populate the template with.

  2. helpers {Object<String,function()>}Optional

    Helper methods referenced in the template.



The template with interpolated data.

Renders an object with view helpers attached to the view.

new can.EJS({text: "<%= message %>"}).render({
  message: "foo"
},{helper: function(){ ... }})