Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (Meteor.isClient){
- //e.g.
- yourName = new ReactiveVar("John Smith")
- // make every ReactiveVar available by its name in meteor templates
- _.chain(this).pairs().filter(function(pair){
- return (pair[1] instanceof ReactiveVar);
- }).each(function(pair){
- Template.registerHelper(pair[0], function(){
- return pair[1].get();
- });
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement