You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using 0.10.0, how do I set context of the template?
I've tried something like this, but context is being overwritten...
templates: {
empty: function(query);
var geo = $('input#city_selector').data('geo');
var template = require('text!../../templates/vendor404.html');
var html = Handlebars.compile(template);
var data = { 'geo': geo, 'query': query };
return html(data);
}
The text was updated successfully, but these errors were encountered:
I'm using 0.10.0, how do I set context of the template?
I've tried something like this, but context is being overwritten...
The text was updated successfully, but these errors were encountered: