add failing test for template fn
evaluate template functions
use `this.model` instead in template functions
Merge pull request #6 from stagas/template-fn

template functions