Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : how do i access the data in the template?

$
0
0
You are passing the showEJS renderer function to the .html function in the first line of show(). .html is expecting the name of a template or the path to one, not a renderer function.

In the steal callback, any template will be the renderer function so in your code initEJS and showEJS are functions that accept data and spit out a DocumentFragment.

So use one or the other, but if you use the first it should be:
  1. this.element.html(showEJS(findAll({...}));



Viewing all articles
Browse latest Browse all 3491

Trending Articles