2 ms·
Even backend frameworks distinguish between templates and components. For example, Laravel has Blade templates and Blade components. From the documentation on
by rahimnathwani 5y ago
Even backend frameworks distinguish between templates and components.
For example, Laravel has Blade templates and Blade components. From the documentation on the latter:
"Components and slots provide similar benefits to sections, layouts, and includes"
If you use Tailwind with Blade templates, but don't use {components, sections, layouts, includes}, then you'll have a hard time keeping things consistent. Because you'll define how a button looks over and over in each template. In that case, something like Bootstrap or Pollen would be easier.
But the right way is probably to break your templates into smaller pieces (e.g. components) so you can use Tailwind but still share things like buttons between templates.
- scns 5y agoAh i see, thanks for the clarification, not using Laravel myself.