bminer / node-blade

Blade - HTML Template Compiler, inspired by Jade & Haml
Other
320 stars 28 forks source link

Meteor: Template events and stuff doesn't work for included templates #139

Closed bminer closed 11 years ago

bminer commented 11 years ago

In Meteor, If template A includes template B and template B has an event map associated with it, then those event handlers should be bound. Currently, this does not work.

Template.B.events = {...}

In addition, there is no find() function available on the Template's instance (i.e. this when in a rendering callback) unless a Landmark was created for that template??

bminer commented 11 years ago

This is caused by the way runtime.include includes templates. It does not setup a Landmark, events, etc. This should be changed so long as blocks don't exist in the included template.