문제

Is it possible to modify the skeleton structure for a plugin?

I've found in the docs and it says how to change the skel for baking a project using

cake bake project -skel Console/Templates/skel

However, what I want is to be able to bake a plugin, something like:

cake bake plugin Demo -skel Console/Templates/demo_skel

and be able to provide custom css/javascripts/views/etc, but just for my plugin, not the whole app.

Thanks.

도움이 되었습니까?

해결책

No

Unfortunately not, the plugin task does not use a template, it just uses a hard coded array to generate the basic plugin structure.

But maybe soon

That said about a year ago (so long ago? Oh the shame). I started working on providing exactly that, and apparently forgot about it. So perhaps in the next minor release it will be available.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top