Created
September 10, 2015 13:53
-
-
Save rockymontana/4ad26f0107c909114b3f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Routes.find().fetch().map((dRoute) => { | |
that = this; | |
dRoute.forEach(function (dRoute) { | |
that.route(dRoute.path, { | |
name: dRoute.name, | |
path: '/' + dRoute.path, | |
layout: //[dRoute.template] | |
}); | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Routes.find().fetch().map((dRoute) => { | |
that = this; | |
dRoute.forEach(function (dRoute) { | |
that.route(dRoute.path, { | |
name: dRoute.name, | |
path: '/' + dRoute.path, | |
layout: //[dRoute.template] | |
}); | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Schemas = {}; | |
Schemas.Routes = new SimpleSchema({ | |
path: { | |
type: String, | |
optional: false, | |
}, | |
name: { | |
type: String, | |
optional: false, | |
}, | |
template: { | |
type: String, | |
optional: true | |
} | |
}); | |
Routes = new Meteor.Collection('Routes'); | |
Routes.attachSchema(Schemas.Routes); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment