webtry: Simplify template construction.
authortfarina <tfarina@chromium.org>
Tue, 14 Oct 2014 16:39:02 +0000 (09:39 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 14 Oct 2014 16:39:02 +0000 (09:39 -0700)
commit585a5fc243e290ad9055ae1439a5e505d1ce7368
tree775e63972de0a10ddf22cf9507dcd6c66de8eb73
parentbdc49ae0d422b8fe1957af570c4f4e63272f5285
webtry: Simplify template construction.

text/template and html/template both have a helper function called
"Must" that according to the docs in http://golang.org/pkg/text/template/#Must
and http://golang.org/pkg/html/template/#Must, wraps a call to a function
returning (*Template, error) and panics if the error is non-nil.

So we don't need to that ourselves. Which is a good thing and makes code
cleaner.

BUG=None
TEST=None
R=jcgregorio@google.com

Review URL: https://codereview.chromium.org/642243004
experimental/webtry/webtry.go