Framework-agnostic(ish) generator for Backbone.js things
Go to file
John Bintz 81a31a66df little bit of cleanup, add collection view 2011-04-15 15:32:04 -04:00
autotest initial commit 2011-04-15 14:55:37 -04:00
bin little bit of cleanup, add collection view 2011-04-15 15:32:04 -04:00
lib initial commit 2011-04-15 14:55:37 -04:00
spec little bit of cleanup, add collection view 2011-04-15 15:32:04 -04:00
templates little bit of cleanup, add collection view 2011-04-15 15:32:04 -04:00
.gitignore initial commit 2011-04-15 14:55:37 -04:00
Gemfile initial commit 2011-04-15 14:55:37 -04:00
README.md more small changes 2011-04-15 15:02:36 -04:00
Rakefile initial commit 2011-04-15 14:55:37 -04:00
backbone-generator.gemspec initial commit 2011-04-15 14:55:37 -04:00

README.md

Not done yet!

Currently only works with Rails-ish projects and with Jasmine & Jammit. I'm selfish.

Models

backbone-generate model Admin::User creates an AdminUserModel object in:

  • public/javascripts/models/admin/user.js
  • spec/javascripts/models/admin/user_spec.js

View

backbone-generate view Admin::User creates an AdminUserView object in:

  • public/javascripts/views/admin/user.js
  • spec/javascripts/views/admin/user_spec.js
  • app/views/admin/user.jst

Collection

backbone-generate collection Admin::User creates an AdminUsersCollection object in:

  • public/javascripts/collections/admin/users.js
  • spec/javascripts/collections/admin/users_spec.js

Please add more and make it more friendly with things that are not Rails, Jasmine, and Jammit!