Is there a way to pass variables into templates in Meteor?

前端 未结 9 2125
深忆病人
深忆病人 2020-12-01 01:37

I\'ve been experimenting with Meteor and ran into something I couldn\'t figure out. For fun, I was trying to make a slot machine. I had the following HTML:

&         


        
9条回答
  •  庸人自扰
    2020-12-01 02:23

    Use this when you pass just one argument.

    {{> slot 1}} {{> slot 2}}

    No javascript required to do it. If you need more than a argument try Dan's way.

提交回复
热议问题