Hacker News new | ask | show | jobs
by expliced 2017 days ago
What templating library do you use that provides components? And no, partials are not a substitution.
3 comments

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?
Why aren't partials a substitution in the context of Tailwind? The only goal is to keep classes DRY.
Stencil to build WebComponents ?