fix typo. only validate template value if annotation is used
make mustache template caching optional