Jekyll doesn’t do components? Liar!

I like the pushback from Katie Kodes here. I’ve said in the past that I don’t think server-side languages haven’t quite nailed “building in components” as well as JavaScript has, but hey, this is a good point:

1. Any basic


The post Jekyll doesn’t do components? Liar! appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.


This content originally appeared on CSS-Tricks and was authored by Chris Coyier

I like the pushback from Katie Kodes here. I’ve said in the past that I don’t think server-side languages haven’t quite nailed “building in components” as well as JavaScript has, but hey, this is a good point:

1. Any basic fragment-of-HTML “component” you can define with JSX in a file and then cross-reference as <MyComponent key="value" />, you can just as easily define with Liquid in a file and cross-reference in Jekyll as {% include MyComponent.html key=value %}.

2. Any basic fragment-of-HTML “layout” you can define with JSX in a file and then cross-reference as <MyLayout>Hello, world</MyLayout>, you can just as easily define with Liquid in a file and then cross-reference in the front matter of a Jekyll template as layout: MyLayout.

Any HTML preprocessor that can do partials with local variables is pretty close to replicating the best of stateless JavaScript components. The line gets even blurrier with stuff like Eleventy Serverless that can build individual pages on the fly by hitting the URL of a cloud function.

Direct Link to ArticlePermalink


The post Jekyll doesn’t do components? Liar! appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.


This content originally appeared on CSS-Tricks and was authored by Chris Coyier


Print Share Comment Cite Upload Translate Updates
APA

Chris Coyier | Sciencx (2021-10-08T17:14:05+00:00) Jekyll doesn’t do components? Liar!. Retrieved from https://www.scien.cx/2021/10/08/jekyll-doesnt-do-components-liar/

MLA
" » Jekyll doesn’t do components? Liar!." Chris Coyier | Sciencx - Friday October 8, 2021, https://www.scien.cx/2021/10/08/jekyll-doesnt-do-components-liar/
HARVARD
Chris Coyier | Sciencx Friday October 8, 2021 » Jekyll doesn’t do components? Liar!., viewed ,<https://www.scien.cx/2021/10/08/jekyll-doesnt-do-components-liar/>
VANCOUVER
Chris Coyier | Sciencx - » Jekyll doesn’t do components? Liar!. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/10/08/jekyll-doesnt-do-components-liar/
CHICAGO
" » Jekyll doesn’t do components? Liar!." Chris Coyier | Sciencx - Accessed . https://www.scien.cx/2021/10/08/jekyll-doesnt-do-components-liar/
IEEE
" » Jekyll doesn’t do components? Liar!." Chris Coyier | Sciencx [Online]. Available: https://www.scien.cx/2021/10/08/jekyll-doesnt-do-components-liar/. [Accessed: ]
rf:citation
» Jekyll doesn’t do components? Liar! | Chris Coyier | Sciencx | https://www.scien.cx/2021/10/08/jekyll-doesnt-do-components-liar/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.