moviepilot/chaplin — pull request #44 by karellm (2012-04-29 00:35:20+00:00)
Title: Features/structure

Edit the structure as discussed here in #25.

1. `application_controller` is renamed `dispatcher` because it wasn't a controller but a dispatcher. It is also removed from the `controllers/` folder

2. rename `application` to `core` so it allows the user to create an application named `Application`. Another option could be `chaplin` but requiring `chaplin/chaplin` isn't meaningful imo

3. `application_view` is now named `layout`. It isn't loaded anymore from the `core` because it is too application specific. Actually, there is a `application_layout` that inherits from `layout` and that the user need to initialize from his application. If you approve this change, we'll need to refactor `layout` to remove some code that is imo too "application specific" and should be left to the user to decide wether or not to use it (for instance map all links internally)

4. `application_controller` is now outside of chaplin and serve as a middle layer between `controller` and the controllers in your application. As a result any controller now inherit from `application_controller` rather than `controller`.