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

后端 未结 6 1173
攒了一身酷
攒了一身酷 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:32

    Please take a look at my project at github. I have a solution for this. It might not be the best, but it is working so far.

    github.com/voteapp

    
        Index
    
    
    
        {{> root}}
    
    

    root template is using some other templates inside. I may use 2 different index files. 1 for site and 1 for management panel.

    root template:

    
    

    adminLogin template:

    
    

    management template:

    
    

    site template:

    
    

    This is not actually html from my project but it is something like this. With this way, CSS links will appear at the end of body tag. And for admin panel and site itself will have different html structure and css files. Also you may want to add javasctipt files also.

提交回复
热议问题