Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Backbone.js with Steal.js and doT templating - Starter Kit

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 MIT License_files
Octocat-spinner-32 app
Octocat-spinner-32 assets
Octocat-spinner-32 scripts
Octocat-spinner-32 steal
Octocat-spinner-32 .gitignore
Octocat-spinner-32 MIT License.html
Octocat-spinner-32 README.md
Octocat-spinner-32 app.js
Octocat-spinner-32 index.html
Octocat-spinner-32 js
Octocat-spinner-32 js.bat
README.md

Backbone.js with Steal.js and doT as template system

Installation

Clone this project and start building on top of it. I would discard the .git folder after starting and create a new, initial commit.

Logic

When I started this project, I decided to put all js logic in the app folder. I would argue that a good structure would be: modules-models-collections-views. I would create custom modules used mostly as UI components or communication enablers and use backbone style models-collections to map the application logic. Layouts-views could be solved by using just some extra folders to separate between pages and nested views.

Views are gotten from the server via a synchronous call. The alternative would be using deferred, but although this seems more popular at the moment, I decided it would be easier to do this, because in production the views could be strings under the same namespace and the handling logic would be the same.

Components

Something went wrong with that request. Please try again.