@validates('<STR_LIT>')<EOL><INDENT>def validate_template_name(self, key, value):<DEDENT>
if value not in dict(current_app.config['<STR_LIT>']):<EOL><INDENT>raise ValueError(<EOL>'<STR_LIT>'.format(value))<EOL><DEDENT>return value<EOL>
Validate template name.

        :param key: The template path.
        :param value: The template name.
        :raises ValueError: If template name is wrong.