getTemplateNames method

Iterable<String> getTemplateNames()

Get the names of all the available templates in the templates dir.

Implementation

Iterable<String> getTemplateNames() {
  return _snippetGenerator
      .getAvailableTemplates()
      .map<String>((File file) => file.basename.replaceFirst('.tmpl', ''));
}