looshi / Blaze-Haus

Edit blaze templates and css at runtime
6 stars 0 forks source link

Template Events #16

Open looshi opened 9 years ago

looshi commented 9 years ago

see if it's possible to add these type of Meteor events to the template at runtime.

Template.MyTemplate.events({ 'click button' : function(e){ // do something }, })

looshi commented 9 years ago

as we do with the helpers, the syntax for an event block can be simplified like :

events = { ' click div' : function(){ // do something } }