summaryrefslogtreecommitdiff
path: root/public/js/lib/views
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-08-05 00:51:32 -0400
committerJules Laplace <jules@okfoc.us>2015-08-05 00:51:32 -0400
commitd0b4cd4f7e6364a35a420f2f3b0fcdbb502d8a9a (patch)
treeb05b32e1f283946346e96c9ded24f0966ce584ed /public/js/lib/views
parent18648921f75a7c458cf0c951c249b28a48f08a6b (diff)
basic routing
Diffstat (limited to 'public/js/lib/views')
-rw-r--r--public/js/lib/views/index.js22
-rw-r--r--public/js/lib/views/lobby/index.js9
-rw-r--r--public/js/lib/views/room/index.js9
3 files changed, 40 insertions, 0 deletions
diff --git a/public/js/lib/views/index.js b/public/js/lib/views/index.js
new file mode 100644
index 0000000..d96bffb
--- /dev/null
+++ b/public/js/lib/views/index.js
@@ -0,0 +1,22 @@
+var SiteRouter = Router.extend({
+ el: "body",
+
+ events: {
+ },
+
+ routes: {
+ "/": 'lobby',
+ "/v/:name": 'room',
+ },
+
+ initialize: function(){
+ this.route()
+ },
+
+ lobby: function(){
+ },
+
+ room: function(name){
+ },
+
+}) \ No newline at end of file
diff --git a/public/js/lib/views/lobby/index.js b/public/js/lib/views/lobby/index.js
new file mode 100644
index 0000000..5ed1966
--- /dev/null
+++ b/public/js/lib/views/lobby/index.js
@@ -0,0 +1,9 @@
+var LobbyView = View.extend({
+
+ events: {
+ },
+
+ initialize: function(){
+ }
+
+}) \ No newline at end of file
diff --git a/public/js/lib/views/room/index.js b/public/js/lib/views/room/index.js
new file mode 100644
index 0000000..b266e29
--- /dev/null
+++ b/public/js/lib/views/room/index.js
@@ -0,0 +1,9 @@
+var RoomView = View.extend({
+
+ events: {
+ },
+
+ initialize: function(){
+ }
+
+}) \ No newline at end of file