I was wondering if it is possible to Bake JS Files in CakePHP? I have written some custom cake bake templates that fit our layout and standards, and take care of the crud involved in our controllers and views. I'd like to take it one step further by baking some methods found in most of our javascript classes such as index, view, add, and save.
Is it possible to do so and output into app/webroot/js?
One workaround that comes to mine is just having the js output directly into the index file and then moving it into its own respective file, but I'd like an automagic solution instead.
Thoughts on this?