bminer / node-blade

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

Meteor: exposing keyword not working for file includes #154

Closed vraptor75011 closed 11 years ago

vraptor75011 commented 11 years ago

I have :

posts.blade :


foreach posts as post
include 'post' exposing post

post.blade :


- console.log(post)

And i get an error : post undefined

Any ideas ?

Posts is a meteor collection = Posts.find() and if I log post in posts.blade I get

Object {title: "aut,fugit,a", _id: LocalCollection._ObjectID} _id: LocalCollection._ObjectID title: "aut,fugit,a" proto: Object

bminer commented 11 years ago

Thanks for the report. Just by looking at the source, this looks like this is an oversight on my part. I am currently investigating...