Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
unknovvn opened this issue Jun 24, 2024 · 5 comments
Open
1 task done
Labels
enhancement New feature or request

Comments

@unknovvn
Copy link

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

  • I agree
@unknovvn unknovvn added the enhancement New feature or request label Jun 24, 2024
@briancbarrow
Copy link
Collaborator

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

Something like this?

  • HTMX
  • Template

@unknovvn
Copy link
Author

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

@Ujstor
Copy link
Collaborator

Ujstor commented Jul 8, 2024

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

@unknovvn
Copy link
Author

unknovvn commented Jul 9, 2024

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

@newtoallofthis123
Copy link

Would be kinda cool to have!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants