Skip to content

add development warnings for missing data properties#320

Merged
Rich-Harris merged 1 commit intomasterfrom
gh-13
Mar 1, 2017
Merged

add development warnings for missing data properties#320
Rich-Harris merged 1 commit intomasterfrom
gh-13

Conversation

@Rich-Harris
Copy link
Copy Markdown
Member

This makes a start on #13 — it introduces dev: true as an option for adding development warnings, and kicks things off by throwing an error if a template references a property that isn't present on the initial data object (something we can't know until runtime).

We can iterate on the specifics of the error message (e.g. it could include a link to some documentation explaining what the message means, and that you can fix it my initialising with null data), but at least now we have something to work with, and the infrastructure to test it

@Rich-Harris Rich-Harris merged commit a8d1983 into master Mar 1, 2017
@Rich-Harris Rich-Harris deleted the gh-13 branch March 1, 2017 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant