Releases: canjs/can-component
Releases · canjs/can-component
setting `viewModel: true` on scopes
skipping stache filename test in production
passing a filename to stache() for inline views
Filenames are now passed to stache()
when using inline view
s like:
var MyComponent = Component.extend({
tag: "my-filename-component",
ViewModel: {},
view: "<div></p>"
});
This way, useful error messages are given. For example, the view above gives:
MyFilenameComponentView:1: unexpected closing tag </p> expected </div>