Open felixwahner opened 8 years ago
I think I can add this, and that .php file limitation there is a mistake, as it was supposed to include .inc and .module as well. Which extension(s) did you want to support?
That's great!
I think adding .tpl
, .latte
and .twig
would cover all bigger php templating engines.
Having this as a config option would be great - there are, and will be, more template engines.
Ok. That would be even better!
The new FileCompiler is a great addition for those who don't like/want to use plain PHP as a templating language. We've just recently started developing a new FileCompiler module ( FileCompilerTwig ) which is going to replace "TemplateTwigReplace". As far as we've noticed currently only files ending with .php are going to be compiled. Could you think about re-enabling the
$config->templateExtension
setting? This would be a great addition for those who are about to write other FileCompilers that won't use .php Files.