Prevent confusing template errors when seq is nil
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 9 Feb 2016 18:00:07 +0000 (19:00 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 9 Feb 2016 18:02:05 +0000 (19:02 +0100)
commit8fe1070872bd59961b9700ea5e62ad11a1b04b96
tree6fbd2c86769079ae62ab07c27dfa078ab56ba57b
parent2b3b90a6dfc30677c6cd20e5a34a7c8243ba9145
Prevent confusing template errors when seq is nil

The common is the `where` func and this:

```
panic: reflect: call of reflect.Value.Type on zero Value [recovered]
panic: reflect: call of reflect.Value.Type on zero Value
```
tpl/template_funcs.go