How to use Meteor methods inside of a template helper

前端 未结 6 1249
伪装坚强ぢ
伪装坚强ぢ 2020-11-22 12:05

How can I define a Meteor method which is also callable in a template helper?

I have these two files:

file: lib/test.js

Meteor.methods({
             


        
6条回答
  •  情歌与酒
    2020-11-22 12:50

    There is a fine little package for this by @msavin:
    https://atmospherejs.com/msavin/fetcher

提交回复
热议问题