News for hackers. Stuff that matters.
Re:Why I Love Tailwind by expliced on Monday December 07, 2020 @04:03PM (#25337481)
What templating library do you use that provides components? And no, partials are not a substitution.
Re:Why I Love Tailwind by dsego on Monday December 21, 2020 @10:54AM (#25495980)
You can do server-side JSX I believe. Almost all front-end frameworks (eg Vue, Svelte, Riot) support SSR but you have to use JS on the server. Why PHP/Python haven't caught on and reworked their template syntax to look like nestable tag components with props is beyond me. Maybe an idea for a new open-source lib, JSX for PHP?
Re:Why I Love Tailwind by city41 on Monday December 07, 2020 @05:31PM (#25338603)
Why aren't partials a substitution in the context of Tailwind? The only goal is to keep classes DRY.
Re:Why I Love Tailwind by Kyro38 on Monday December 07, 2020 @05:04PM (#25338270)
Stencil to build WebComponents ?