Skip to content

Meteor: exposing keyword not working for file includes #154

Closed
vraptor75011 opened this Issue Mar 16, 2013 · 1 comment

2 participants

@vraptor75011

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 bminer was assigned Mar 16, 2013
@bminer
Owner
bminer commented Mar 16, 2013

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

@bminer bminer added a commit that closed this issue Mar 17, 2013
@bminer Refactored `blade.Runtime.include` and fixed `runtime-meteor.js` to f…
…ix file includes (fixes #154)

Push to 3.0.3
30e8c96
@bminer bminer closed this in 30e8c96 Mar 17, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.