Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Init Spine

  • Loading branch information...
commit 5dc751f0a1f462659294ba78975c17f68b8afe7a 1 parent a28d4f6
@aubreyrhodes authored
View
0  app/assets/javascripts/app/controllers/.gitkeep
No changes.
View
24 app/assets/javascripts/app/index.js.coffee
@@ -0,0 +1,24 @@
+#= require json2
+#= require jquery
+#= require spine
+#= require spine/manager
+#= require spine/ajax
+#= require spine/route
+
+#= require_tree ./lib
+#= require_self
+#= require_tree ./models
+#= require_tree ./controllers
+#= require_tree ./views
+
+class App extends Spine.Controller
+ constructor: ->
+ super
+
+ # Initialize controllers:
+ # @append(@items = new App.Items)
+ # ...
+
+ Spine.Route.setup()
+
+window.App = App
View
0  app/assets/javascripts/app/lib/.gitkeep
No changes.
View
3  app/assets/javascripts/app/lib/view.js.coffee
@@ -0,0 +1,3 @@
+Spine.Controller.include
+ view: (name) ->
+ JST["app/views/#{name}"]
View
0  app/assets/javascripts/app/models/.gitkeep
No changes.
View
0  app/assets/javascripts/app/views/.gitkeep
No changes.
View
1  app/assets/javascripts/application.js
@@ -12,4 +12,5 @@
//
//= require jquery
//= require jquery_ujs
+//= require app
//= require_tree .
Please sign in to comment.
Something went wrong with that request. Please try again.