Closed dmitshur closed 7 years ago
This is a refactor that largely replaces the use of HTML templates for rendering with pure Go components that emit HTML nodes.
The goal is to help #67. Dealing with templates on frontend would be trickier, so I want to make this change first.
This is a change similar to https://github.com/shurcooL/notificationsapp/pull/3, and shares similar motivations and benefits:
The Go components are much easier to maintain, refactor, reuse, improve, test, and generate minified HTML (see before and after).
Resolves #69 along the way.
This is a refactor that largely replaces the use of HTML templates for rendering with pure Go components that emit HTML nodes.
The goal is to help #67. Dealing with templates on frontend would be trickier, so I want to make this change first.
This is a change similar to https://github.com/shurcooL/notificationsapp/pull/3, and shares similar motivations and benefits:
Resolves #69 along the way.