apotonick/apotomo — pull request #65 by Nerian (2012-02-03 16:56:39+00:00)
Title: Reorganise where files are saved

Currently the generated files looks like this:

widgets/my_widget.rb
widgets/my_widget/a_view.html.slim
widgets/my_widget/another_view.html.slim

widgets/my_widget/sub_widget.rb
widgets/my_widget/sub_widget/a_view.html.slim

So in the same folder, we can find both view code and widget code. A little messy.

I propose to change it to:

widgets/my_widget/my_widget.rb
widgets/my_widget/my_widget/views/a_view.html.slim
widgets/my_widget/my_widget/views/another_view.html.slim

widgets/my_widget/sub_widget/sub_widget.rb
widgets/my_widget/sub_widget/sub_widget/views/a_view.html.slim