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

后端 未结 6 2169
时光说笑
时光说笑 2021-02-14 08:56

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:47

    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.

提交回复
热议问题