ryancramerdesign / ProcessWire

Our repository has moved to https://github.com/processwire – please head there for the latest version.
https://processwire.com
Other
727 stars 199 forks source link

FileCompiler: Allow compilation of non-php Files #1888

Open felixwahner opened 8 years ago

felixwahner commented 8 years ago

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.

ryancramerdesign commented 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?

felixwahner commented 8 years ago

That's great! I think adding .tpl, .latte and .twig would cover all bigger php templating engines.

netcarver commented 8 years ago

Having this as a config option would be great - there are, and will be, more template engines.

felixwahner commented 8 years ago

Ok. That would be even better!