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've see this question come up more than a few times. I have mixed feelings on it.
Users want to do something like:
var MyView = Marionette.ItemView.extend({
templateOnly: true,
template: _.template('<span class="myView"></span>')
});
which would be equiv. to:
var MyView = Marionette.ItemView.extend({
tagName: 'span',
className: 'myView'
});
I can't imagine this would be exceedingly difficult to do, but might be a slight perf. hit for the extra check when rendering, but it would allow all HTML to stay inside the template.
Thoughts?
The text was updated successfully, but these errors were encountered:
MeoMix
changed the title
Is there any merit to allowing users to set flag indicating tag/className for view is inside template?
Is there any merit to allowing users to set flag indicating tagName/className for view is inside template?
Jun 30, 2015
I've see this question come up more than a few times. I have mixed feelings on it.
Users want to do something like:
which would be equiv. to:
I can't imagine this would be exceedingly difficult to do, but might be a slight perf. hit for the extra check when rendering, but it would allow all HTML to stay inside the template.
Thoughts?
The text was updated successfully, but these errors were encountered: