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

Lucid view builder #1

Merged
merged 6 commits into from
Dec 8, 2016
Merged

Lucid view builder #1

merged 6 commits into from
Dec 8, 2016

Conversation

wereHamster
Copy link
Owner

Experimenting with API like Lucid has for building elements. Greatly simplifies API surface:

Nodes

Old New
ENode "br" Nothing [] [] noStyle [] br_ []
ENode "div" Nothing [] [] rootStyle [...] div_ [style_ rootStyle] [...]
EThunk someThunk props thunk_ someThunk props

Attributes

Old New
Attribute "value" (AVString t) value_ t
intAttribute "x" 0 x_ 0

@wereHamster wereHamster merged commit 3d702c9 into master Dec 8, 2016
@wereHamster wereHamster deleted the lucid-view-builder branch December 8, 2016 19:50
@meiersi-da
Copy link

Looks sweet! 👍

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