todomvc-app-template icon indicating copy to clipboard operation
todomvc-app-template copied to clipboard

This depends on the learn.json from the main app

Open ashnur opened this issue 5 years ago • 2 comments

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.

ashnur avatar Jun 09 '19 02:06 ashnur

there are better ways than this.

Ok, what are those better ways?

sindresorhus avatar Jun 09 '19 07:06 sindresorhus

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.

ashnur avatar Jun 09 '19 08:06 ashnur