if (Meteor.isServer) return function Example() { this.directHello = "Hello World by field" } Object.defineProperty(Example.prototype, 'hello', { value: "Hello World by prototype" }) Router.map(function() { this.route('index', {path: '/', data: function() { return new Example }}) }) Template.index.helperHello = function() { return (new Example).hello }