cakephp / bake

The Bake Command Plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bake Template: make fileextension configurable

fabian-mcfly opened this issue · comments

Currently, the php-Extension for newly baked templates is hardcoded. Thus it's not possible to create other filetypes without overwriting the whole TemplateCommand::bake method.

$filename = $path . Inflector::underscore($outputFile) . '.php';

What other extensions would you use?

Twig for example.

This will be configurable with TemplateCommand::$ext in 2.8.