State Management with Templ Web Framework #949
Replies: 2 comments 2 replies
-
Not really sure what you're asking here. The documentation is at https://templ.guide. It covers composition https://templ.guide/syntax-and-usage/template-composition/ There are component libraries being developed that target templ, e.g. https://goship.it/ - we're going to be adding them to https://github.com/templ-go/awesome-templ I don't know what your specific question is related to state management. There's a sample of state management included at https://templ.guide/server-side-rendering/example-counter-application/ templ works well with HTMX and https://data-star.dev/ for adding client side interactivity, including the use of SSE for realtime updates to UI. |
Beta Was this translation helpful? Give feedback.
-
@CordialSocial Templ is responsible for the HTML presentation layer. That's it. BTW: you are a software developer, have you coded anything with Templ? What you are asking and how it is asked seems strange, to say the least. |
Beta Was this translation helpful? Give feedback.
-
GO/ Golang of itself, can handle backend effectively.
And when people these days want to build websites, they don't want to build something that is just simple-- else they will use something like WordPress, for a simple website.
The point is, if people want to commit time, hours and effort in coding a website from scratch, they actually want to build something serious, and with a lot of interactivity.
I mean, tools like React, Vue, and Svelte make it possible to create Reusable Web Components.
Their additional strong point is State Management-- where an application's components behaviour changes according to certain actions.
Can Templ be upgraded to such height, as to provide the full features of tools like React, Vue and Svelte-- where we can create Reusable Components, as well as State Management-- in an easy to implement and easy to understand way?
Once Templ can be used to create Reusable Web Components, and Templ can handle State Management on the frontend, as well as cause these to be done in an easy to understand and easy to implement way, we would have brought the React, Vue and Svelte world to GO.
It will be nice if Templ can bring the full power of frontend -- which are Reusable Web Components and State Management capabilities to the world of GO.
The very things ( Reusable Web Components and State Management ) that make React, Vue, Angular and Svelte to be worth any mention.
Bring these same frontend capabilities to the GO Ecosystem.
A POINT OF NOTE
GO inherently can handle concurrency.
Use the concurrency feature of GO to manage State on a Web App developed with Templ.
What's the way forward on this?
Regards.
Beta Was this translation helpful? Give feedback.
All reactions