tpl: Return all errors from casting
authorCameron Moore <moorereason@gmail.com>
Fri, 12 Aug 2016 22:43:15 +0000 (17:43 -0500)
committerCameron Moore <moorereason@gmail.com>
Wed, 17 Aug 2016 02:42:38 +0000 (21:42 -0500)
commit5498a1bd5616903fce3df687adf43d19e1c4e4c4
treee205b5863aae04b4dfb43ef5d009bf4c48ef1927
parentd3627b1747c18eb18279012afe5ba7174bdaa869
tpl: Return all errors from casting

Most non-boolean template functions should return errors.

Fixes #2354
tpl/template_funcs.go
tpl/template_funcs_test.go