tpl/cast: Handle template.HTML and friends in ToInt
authorCameron Moore <moorereason@gmail.com>
Mon, 22 May 2017 20:05:58 +0000 (15:05 -0500)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 22 May 2017 20:20:53 +0000 (23:20 +0300)
commit4113693ac1b275f3a40aa5c248269340ef9b57f6
tree853b1db5575585eabdd1f24da226c4286bef9f47
parentf41f72822251c9a31031fd5b3dda585c57c8b028
tpl/cast: Handle template.HTML and friends in ToInt

Also add tests for ToInt and ToString.

Resolves #3308
tpl/cast/cast.go
tpl/cast/cast_test.go [new file with mode: 0644]