I like the pushback from Katie Kodes right here. I’ve stated up to now that I don’t assume server-side languages haven’t fairly nailed “constructing in elements” in addition to JavaScript has, however hey, it is a good level:
1. Any primary fragment-of-HTML “element” you possibly can outline with JSX in a file after which cross-reference as <MyComponent key=”worth” />, you possibly can simply as simply outline with Liquid in a file and cross-reference in Jekyll as {% embrace MyComponent.html key=worth %}.
2. Any primary fragment-of-HTML “structure” you possibly can outline with JSX in a file after which cross-reference as <MyLayout>Howdy, world</MyLayout>, you possibly can simply as simply outline with Liquid in a file after which cross-reference within the entrance matter of a Jekyll template as structure: MyLayout.
Any HTML preprocessor that may do partials with native variables is fairly near replicating the very best of stateless JavaScript elements. The road will get even blurrier with stuff like Eleventy Serverless that may construct particular person pages on the fly by hitting the URL of a cloud perform.
Direct Hyperlink to Article — Permalink
The put up Jekyll doesn’t do elements? Liar! appeared first on CSS-Methods. You may assist CSS-Methods by being an MVP Supporter.
Subscribe to MarketingSolution.
Receive web development discounts & web design tutorials.
Now! Lets GROW Together!