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

CDN import not working #9

Closed
AxelRHD opened this issue Mar 8, 2024 · 3 comments
Closed

CDN import not working #9

AxelRHD opened this issue Mar 8, 2024 · 3 comments

Comments

@AxelRHD
Copy link

AxelRHD commented Mar 8, 2024

Hi, I just found your incredible framework and and decided to give it a try.

I use GO with gin (and gomponents for rendering of HTML).

HTML gets rendered, but it seems, that your library does nothing.

This is the HTML code:
image

And this is the result:
image

I also tried the counter-example, but that didn't work neither.

Can you tell me, where the problem is?

Thanks.

@delaneyj
Copy link
Collaborator

Sorry, things are in flux....

Originally you had to iniate after you included, however change to auto inject since even with all plugins its ~10kb.

Try

<script src="
https://cdn.jsdelivr.net/npm/@sudodevnull/datastar@0.7.0/dist/datastar.min.js
"></script>

@AxelRHD
Copy link
Author

AxelRHD commented Mar 23, 2024

Thank you. I will give it a try.

@delaneyj
Copy link
Collaborator

@AxelRHD I'm finishing up a new website and hopefully better docs. Don't hesitate to reach out on HTMX discord on the Datastar channel

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

No branches or pull requests

2 participants