For the given view, in Marionette 2.4.4:
var view = Marionette.LayoutView.extend({
template: Handlebars.compile('{{body}}'),
templateHelpers: function(){
return {
body: "Line one. Line Two.",
};
}
});
view = new view();
MasterView.showChildView('master_content', view);
What do I need to add to the "body" property to make "Line one." appear on a line above "Line Two." once rendered?
Note: templateHelpers became templateContext in newer versions of Marionette.
Experiments: <br>
does not work. It is simply shown as plaintext.
Line Two." – Paul Falgout Jul 18 '17 at 14:01