Re:Htmx
by powersnail on Thursday December 15, 2022 @12:01AM
(#33995415)
How do you integrate tailwind and django? As far as I know (which isn't very much), tailwind encourages the use of "components" which comes very naturally with other frontend frameworks. But with django, do you put each component into a template, like `<button class="rounded xxx"></button>` and `{% include "button.html" %}` when you use a button?
[ Parent
| on HN ]
Re:Htmx
by julianwachholz on Thursday December 15, 2022 @04:53AM
(#33997328)
That's one way. Or you use something like slippers[0] or Tailwind components using @apply.