Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement :shorthand attributes #384

Merged
merged 1 commit into from
Mar 17, 2017
Merged

implement :shorthand attributes #384

merged 1 commit into from
Mar 17, 2017

Conversation

Rich-Harris
Copy link
Member

This was pleasingly straightforward to add — with this PR, <Widget :foo/> is treated the same way as <Widget foo='{{foo}}'/>. Should make it a bit easier to deal with situations where you need to pass down lots of data, without losing explicitness or reducing Svelte's ability to statically analyse stuff.

@Rich-Harris Rich-Harris merged commit 54822b0 into master Mar 17, 2017
@Rich-Harris Rich-Harris deleted the shorthand-attributes branch March 17, 2017 22:10
@Conduitry
Copy link
Member

Nice, even the utterly bizarre syntax <div :Math> does what it's supposed to do with whitelisted globals.

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.

2 participants