Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Astro 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-...


Coming 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: