Skip to content

Commit

Permalink
Updated Bake Templates Section
Browse files Browse the repository at this point in the history
Updated description for theme options to no longer use the term default, as it isn't actually changing the defaults.
Added section for customizing bake templates.
  • Loading branch information
justinyost committed Nov 9, 2015
1 parent ee642e7 commit d43ef39
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion en/bake/development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ And the resultant baked class (**src/Shell/FooShell.php**) looks like this::
Creating a Bake Theme
=====================

If you wish to modify the default output produced by the "bake" command, you can
If you wish to modify the output produced by the "bake" command, you can
create your own bake 'theme' which allows you to replace some or all of the
templates that bake uses. The best way to do this is:

Expand All @@ -186,6 +186,19 @@ templates that bake uses. The best way to do this is:
#. When running bake use the ``--theme`` option to specify the bake-theme you
want to use.

Customizing the Bake Templates
==============================

If you wish to modify the default output produced by the "bake" command, you can
create your own bake templates in your application. This way does not use the
``--theme`` option in the command line when baking. The best way to do this is:

#. Create a new directory **/src/Template/Bake/**.
#. Copy any templates you want to override from
**vendor/cakephp/bake/src/Template/Bake/** to matching files in your
application.


Creating New Bake Command Options
=================================

Expand Down

0 comments on commit d43ef39

Please sign in to comment.