gomponents
inertia
gomponents | inertia | |
---|---|---|
8 | 121 | |
715 | 5,735 | |
5.6% | 0.8% | |
5.9 | 7.9 | |
3 days ago | 10 days ago | |
Go | PHP | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
gomponents
-
Templ: A language for writing HTML user interfaces in Go
I'm really happy you like it. :) And thank you for your comment, I really appreciate newcomer viewpoints especially.
Have a look at the `Classes` helper component already available: https://github.com/maragudk/gomponents/blob/main/components/...
Yeah, I'm not a total fan of the runtime panics, but it was a tradeoff where I chose in favour of API simplicity and readability. In practice, it works out well, because you catch any typos at development time.
I've had elements and attributes in separate packages before, but then you can't dot-import both packages and not have name clashes, and have to either prefix elements or attributes with the package name, which makes the code much less readable. Again, a tradeoff. :)
-
Template Engine Recommendation
Gomponents:
-
HTML Templates | Why would you use them over react?
I now always use https://github.com/maragudk/gomponents for frontend components (I'm the author of that library) together with HTMX (https://github.com/maragudk/gomponents-htmx), and it's just so much more fun and fast to work with.
-
How to render html children inside nested templates
However, there is an alternative to achieve React-ish components in Go using this package: https://github.com/maragudk/gomponents
-
Daz: Composable HTML components in golang
reminds me of https://github.com/maragudk/gomponents
-
How painful is SSR with Go, really?
I’ve also started just rendering views from the Go backend. It’s so nice and simple when you don’t need an SPA (like in your case). I didn’t like the syntax of html/template though, so I started a small view component library. Maybe it would be useful to you too, wrote about it here: https://www.maragu.dk/blog/gomponents-declarative-view-components-in-go/
-
How I build web frontends in Go
Are you speaking of something like: gomponents? I can see what it has to offer. I tried it for half an hour but did not feel that well about it.
inertia
-
Should I rebuild my web app as an SPA?
You mention that implementing Vue with Laravel is a headache but without mentioning what kind of issues you have had? Have you looked into using Inertia.js? (https://inertiajs.com/)
- where can I find information about using vue and php together?
-
Up-to-date methods of using Vue with Laravel in a non-SPA way?
Inertia is what you're looking for, works great!
-
Ask HN: What are some unpopular technologies you wish people knew more about?
Don't know if https://inertiajs.com can be classified as unpopular. but I think it's one of the best web solution combining the best of the both worlds ssr and spa.
-
SQLSync – Stop Building Databases
But, if I can be honest, solutions such as Hotwire or Livewire are not as snappy as a SPA.
I personally prefer [InertiaJs](https://inertiajs.com), which is some kind of front-end router system with its state synced with the server in an "old style" fashion.
- Build single-page apps, without building an API
- InertiaJs: Build single-page apps, without building an API
-
An Internet of PHP
[2] https://inertiajs.com/
- Inertia.js – The Modern Monolith
- InertiaJS – Single-page apps, without building an API
What are some alternatives?
hyperscript - Create HyperText with JavaScript.
laravel-pwa - Looks like an app, feels like an app, but IS NOT an app.
go-admin - A golang framework helps gopher to build a data visualization and admin panel in ten minutes
vite - Next generation frontend tooling. It's fast!
vecty - Vecty lets you build responsive and dynamic web frontends in Go using WebAssembly, competing with modern web frameworks like React & VueJS.
astro - The web framework for content-driven websites. ⭐️ Star to support our work!
goview - Goview is a lightweight, minimalist and idiomatic template library based on golang html/template for building Go web application.
htmx - </> htmx - high power tools for HTML
vugu - Vugu: A modern UI library for Go+WebAssembly (experimental)
Vue.js - This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core
templ - A language for writing HTML user interfaces in Go.
vercel - Develop. Preview. Ship.