This repository has been archived by the owner on Feb 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Expose sections as documents (VDOM) #143
Labels
enhancement
New feature or request
Comments
Well... +/- the types! |
I think just adding a |
kptdobe
changed the title
Expose sections as documents (VDOM) and not MDAST
Expose sections as documents (VDOM)
Mar 26, 2019
kptdobe
added
enhancement
New feature or request
good first issue
Good for newcomers
labels
Mar 26, 2019
With #279,
|
And in addition, I think we will at some point deprecate |
Then we need to think where do we put the |
Good point & good idea. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
During the hackathon, I "played" with sections and the first thing I always do is transforming the sections into documents (VDOM) where the API is must front-end developer oriented than MDAST... See https://github.com/kptdobe/helix-sections-playground/blob/master/src/html.pre.js#L37-L38.
Manipulation, inserting nodes... everything is more simple and in the pre.js, I think a developer would rather care about the DOM than the data structure when consuming sections.
I propose that the pipeline takes care of the transformation.
@trieloff WDYT ?
The text was updated successfully, but these errors were encountered: