(no title)
lonk11 | 2 years ago
I liked the idea of defining the handle path in the name of the template and the auto-reloading on change functionality.
I wish this was a stand-alone library that I could use in my custom Golang server. Do you know if something like this exists?
infogulch|2 years ago
You can also see my previous project, go-htmx for a previous version of the idea, though its missing some features.
lonk11|2 years ago
I would make the templates library take a callback function for every public template: func(method, path string, template).
Then the user could add any custom logic to register the route handler and execute the template with any application specific inputs.