Use this package to display the gravatar images in Meteor.
For Meteor 0.9.0 and above:
meteor add zeta:gravatar
In your HTML template:
<template name="content">
<img src="{{gravatarUrl '[email protected]'}}" alt="gravatar image" />
</template>
In your Javascript:
Template.content.helpers({
gravatarUrl: function(email) {
return Gravatar.url(email, {
size: 100,
defaultImage: 'http://example.com/another/image.jpg'
});
}
});
Support Meteor.users
document as the parameter.