exclude Mustache's template

This commit is contained in:
Nicolas Le Goff
2012-05-28 19:06:41 +02:00
parent 1d95fb8c53
commit f41293fc3a

View File

@@ -89,7 +89,7 @@ class module_console_systemTemplateGenerator extends Command
$finder = new Symfony\Component\Finder\Finder();
foreach ($finder->files()->in(array($tplDir)) as $file) {
foreach ($finder->files()->in(array($tplDir))->exclude('Mustache') as $file) {
try {
$twig->loadTemplate(str_replace($tplDir, '', $file->getPathname()));
$output->writeln('' . $file . '');