-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Epoxy with Template #70
Comments
No, unfortunately. There's no formalized way of passing in a string template or swapping out a bound template. That template binding is quite primitive actually... The difficulty is not so much the binding itself as the inputs INTO the binding. That binding requires model data (easy) and string data for the template... which certainly doesn't belong as a model field. Ironically, I don't use Epoxy very often myself (built it for one project over a year ago), so I'm not very proactive about coming up with use-cases for it. If you can propose an API for how you'd like to define and control template bindings, please propose it. I'd happily take it into consideration. |
Also, this is a duplicate of #27. |
i dont think its a template bindings issue. its simply getting some cursed html (text) into a View object. |
As I said (and you read) in #27, using a function for In your case it could be as simple as swapping |
Do you have any pointers concerning epoxy with underscore template -- whereby html is passed in via string.
as such.
define([
'jquery',
'underscore',
'backbone',
'epoxy',
'text!views/MyTemplate.html'
], function($, _, Backbone, Epoxy, Template ){
var MyView = Epoxy.View.extend({
return MyView;
});
and does one need a render method anymore..!
thanks and apologies for sending email. didnt see this forum. regards
The text was updated successfully, but these errors were encountered: