go-blueprint icon indicating copy to clipboard operation
go-blueprint copied to clipboard

[Feature Request] Add alternative html/template HTMX support to Templ

Open unknovvn opened this issue 1 year ago • 5 comments

Tell us about your feature request

There are multiple projects which use go-htmx stack, but not all of them are using Templ for templating. It would be nice if standart html/template alternative would be provided for this stack.

Disclaimer

  • [X] I agree

unknovvn avatar Jun 24 '24 07:06 unknovvn

Thanks for submitting the issue @unknovvn. Are you thinking we should split the HTMX option into two separate options?

Something like this?

  • HTMX
  • Template

briancbarrow avatar Jun 26 '24 20:06 briancbarrow

Hey @briancbarrow. At the moment there is only HTMX with Templ blueprint available, so it looks like people are not interested in blueprints without using HTMX (for example Templ without HTMX). IMHO HTMX option could be split into two:

  • HTMX and Templ
  • HTMX and std html/template

unknovvn avatar Jun 29 '24 13:06 unknovvn

It is easy to remove the HTMX component from the generated project and use a templ with html, cutom css and js in asset dir.

Generated project is not final solution, just a starting point

Ujstor avatar Jul 08 '24 16:07 Ujstor

@Ujstor I totally agree with you. Although it does not cover using HTMX with std html/template case

unknovvn avatar Jul 09 '24 06:07 unknovvn

Would be kinda cool to have!

newtoallofthis123 avatar Jul 10 '24 09:07 newtoallofthis123