Skip to content

Instantly share code, notes, and snippets.

@radiegtya
Last active October 27, 2015 15:24
Show Gist options
  • Save radiegtya/2aeecf8c306e6627ce80 to your computer and use it in GitHub Desktop.
Save radiegtya/2aeecf8c306e6627ce80 to your computer and use it in GitHub Desktop.
Meteoris Quickstart
/**
create group routes, so every router has prefix radiegtya
*/
var groupRoutes = FlowRouter.group({
prefix: '/radiegtya',
name: 'radiegtya',
});
/**
create the main router called site, and use BlazeLayout render "meteoris_themeAdminMain" from metoris:theme-admin package, and accessing template called "radiegtya_siteIndex"
*/
groupRoutes.route('/site', {
action: function() {
BlazeLayout.render('meteoris_themeAdminMain', {content: "radiegtya_siteIndex"});
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment