Add `validatetemplate` command to validate syntax for template files