javascript - generated .ejs template not working with .js file backbone -


I am trying to make a mobile app with multiple pages. The first page in index and other pages is made with tribal backbone generator. Yo Backbone: The news problem created in my app / template / news.ejs and app / widgets / news.js is that the ejs file works, buttons, icons and so on, but js is not working Can I help if I am not doing right? ELS and JS file

  & lt; Div id = "news-container" & gt; & Lt; Div data-role = "page" & gt; & Lt; Div data-role = "header" & gt; & Lt; H1 & gt; & Lt; / H1> & Lt; / Div & gt; & Lt ;! - End of header - & gt; & Lt ;! - CONTENT - & gt; & Lt; Div data-role = "content" id = "news-content" & gt; & Lt; / Div & gt; & Lt ;! - End of content - & gt; & Lt ;! - footer - & gt; & Lt; Div class = "footer" data-position = "fixed" & gt; & Lt; Div data-role = "answer" & gt; & Lt; Ul & gt; & Lt; Li & gt; & Lt; A href = "../../../ index.html" data-transition = "fade" data-role = "button" data-icon = "home" id = "news-house -btn" & gt; Home and lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt ;! - End of footer - & gt; & Lt; / Div & gt;  

Application.Views = Application.Views || {};

(function () {'strict use';

  Application.Views.News = Backbone.View.extend ({Template: JST [ 'App /scripts/templates/news.ejs'], tag:' div ', id:' ', className:' ', events: {}, start: function () {this.listenTo (this.model,' change ', This.render);}, render: function () {this. $ El.html (this.template (this.model.toJSON ()));}}); setUpButton ();  

}) ();


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

lua - HowTo create a fuel bar -