2014-01-30 53 views

回答

2

你可以把細節條件:

<template name="example"> 
    {{#if admin}} 
     Admin details 
    {{/if}} 
</template> 

 

Template.example.admin = function() { 
    return Meteor.user() && Meteor.user().admin; 
};