Skip to content

Instantly share code, notes, and snippets.

View imjacobclark's full-sized avatar
:shipit:
Shipping

Jacob Clark imjacobclark

:shipit:
Shipping
View GitHub Profile
<template name="main">
Hello World! This is the main template!
</template>
<template name="about">
This is the about template!
</template>
<template name="about">
This is the about template!
</template>
var Router = Backbone.Router.extend({
routes: {
"" : "main",
"about" : "about"
},
main: function() {
},
about: function(){
Meteor.startup(function () {
Backbone.history.start({pushState: true});
});
var Router = Backbone.Router.extend({
routes: {
"" : "main",
"about" : "about"
},
main: function() {
},
about: function(){
var Router = Backbone.Router.extend({
routes: {
"" : "main",
"about" : "about"
},
main: function() {
},
about: function(){
<template name="main">
{{#if interface}}
Hello World! This is the main template!
{{/if}
</template>
<template name="about">
{{#if interface}}
This is the about template!
{{/if}}
</template>
var Router = Backbone.Router.extend({
routes: {
"" : "main",
"about" : "about"
},
main: function() {
Session.set('page', 'main');
this.navigate('');
},