Open ashnur opened 5 years ago
there are better ways than this.
Ok, what are those better ways?
Depends, maybe you could move it above the comment, then it wouldn't be compulsory and people could delete it. Or you could hardcode with the content so people see what they need to download and run. Or just create a page where you embed the application and you control the context. Or any number of other solutions where you don't provide a "template" with runtime errors out of the box.
Since https://github.com/tastejs/todomvc-common/blob/master/base.js#L248
If you want to inject some random content into every application you showcase, there are better ways than this.