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
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:
{{#if adminURL}}
{{> adminLogin}}
{{else}}
{{> site}}
{{/if}}
adminLogin template:
{{#if currentUser}}
{{> management}}
{{else}}
admin login page.
{{loginButtons align="right"}}
{{/if}}
management template:
....
site template:
Hello World!
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.