Where to put a separate admin interface for a Meteor app?

后端 未结 6 1163
攒了一身酷
攒了一身酷 2021-02-14 09:11

I\'m trying to build a smart package for Meteor app that provides some monitoring capabilities and other tools based on the features of the smart package. For more details read

6条回答
  •  离开以前
    2021-02-14 09:50

    As James Hatfield pointed out, Iron-Router now supports multiple layouts. For those hitting this thread now, this is the best way to handle the multiple layout scenario.

    Router.map ->
      @route 'home',
        layoutTemplate: 'homeLayout'
        path: '/'
    
      @route 'dashboard',
        layoutTemplate: 'dashboardLayout'
    

提交回复
热议问题