Template tests

Tests for all template functions in a framework that should make it easier to write more in the future.
Added missing template functions to templates.md.
Split test passes without `{{end}}`. `{{end}}` is only required after `with`, `if`, and `range`.