3 ms·
Could someone compare it like I'm 5 to static site generators like Hugo, Jekyll? Does it make it easier to throw in necessary JS (e.g. for comments)? Thanks.
by FabHK 1y ago
Could someone compare it like I'm 5 to static site generators like Hugo, Jekyll? Does it make it easier to throw in necessary JS (e.g. for comments)? Thanks.
- todotask2 1y agoComing from Go, I don’t enjoy working with the Go or other template engine, I have comparing various 3rd party Go template libraries, and settle down with JSX-like syntax, which is just way easier. You should try it out, not comparing.
- ijusthadto 1y agoAstro is, and should be treated, as a static site generator. > Does it make it easier to throw in necessary JS (e.g. for comments)? With astro you can combine html, css and js in a single file (.astro). You write plain JS (TypeScript) within <script> tag. There, you can, e.g. import your comment library, point to separate .js/*.ts file or write whatever logic you want for client-side JS. See the docs for example JS usage in astro components: https://docs.astro.build/en/guides/client-side-scripts/#web-components-with-custom-elements https://docs.astro.build/en/guides/client-side-scripts/#web-...