kadirahq / blaze-layout

Layout Manager for Blaze (works well with Meteor FlowRouter)
MIT License
198 stars 62 forks source link

could I config main layout with all router? #37

Closed thearabbit closed 9 years ago

thearabbit commented 9 years ago

Could I config main layout with all router?

action: function() {
    FlowLayout.render('mainLayout', {content: 'admin'});
  },

I use this many time.

arunoda commented 9 years ago

You can create a simple wrapper in no time.

render = function(layout, regions) {
  if(!regions) {
    regions = layout;
    layout = "myDefaultLayout";
  }

  FlowLayout.render(layout, regions);
};
thearabbit commented 9 years ago

Look great, Thanks...

thearabbit commented 9 years ago

Excuse me, please correct doc on Flow-router.

FlowLayout.render()