bake icon indicating copy to clipboard operation
bake copied to clipboard

Bake Template: make fileextension configurable

Open fabian-mcfly opened this issue 3 years ago • 2 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.

https://github.com/cakephp/bake/blob/1c8a2d7b6a15f4bbc77bf15c5c780fbceb41de35/src/Command/TemplateCommand.php#L359

fabian-mcfly avatar May 04 '22 19:05 fabian-mcfly

What other extensions would you use?

othercorey avatar Jun 10 '22 07:06 othercorey

Twig for example.

fabian-mcfly avatar Jun 10 '22 07:06 fabian-mcfly

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

othercorey avatar Sep 10 '22 20:09 othercorey