Skip to content

Instantly share code, notes, and snippets.

@JamesMaroney
Created May 9, 2011 13:56
Show Gist options
  • Save JamesMaroney/962556 to your computer and use it in GitHub Desktop.
Save JamesMaroney/962556 to your computer and use it in GitHub Desktop.
App -> Controllers -> Views -> Templates
\------- Javascript --------/ \- HTML - /
App: The App bootstraps the application environment, defines application routes and orchestrates controller transitions.
It provides controllers with an outgoing interface to communicate with the application.
Controllers: Controllers define islands of functionality in the application. They instantiate models and bootstrap views.
They provide views with an outgoing interface to communicate with the controller.
Views: Views bootstrap templates and nested views and translate user events into view method calls.
Templates: Templates define the HTML structure of the user interface.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment