Skip to content

passing a filename to stache() for inline views

Compare
Choose a tag to compare
@phillipskevin phillipskevin released this 21 Mar 19:58
· 213 commits to master since this release

Filenames are now passed to stache() when using inline views 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>

#229