shurcooL / Go-Package-Store

An app that displays updates for the Go packages in your GOPATH.
MIT License
900 stars 29 forks source link

Port HTML templates into Go HTML components. #68

Closed dmitshur closed 7 years ago

dmitshur commented 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.