func (h *hello) Render() app.UI {
return app.H1().Text("Hello World!")
}
Using a template would have been easier and more clear. func (h *hello) Render() app.UI {
return app.H1().Text("Hello World!")
}
Using a template would have been easier and more clear.I did it in previous version and since there is no code check/lint on HTML templates within strings, debugging HTML was a pain in the ass.
More clear is a matter of taste and you can do pretty clear code with this syntax.