jade.compile returning a function-Collection of common programming errors

I want to redo my blog but my code below seems to be returning [function] whenever I console.log it. Yes it is the correct path, and it used to work before I updated jade but not anymore.

post.stub = jade.compile(
        fs.readFileSync(__dirname + '/blog/' + p + '/stub.jade')
)

How do I fix this so that console.log(post.stub) will return my :markdown present in the jade file instead of [function] ?

Thanks in advance.

Updated answer:

 post.stub = jade.compile(
            fs.readFileSync(__dirname + '/blog/' + p + '/stub.jade')
        )({})

Originally posted 2013-11-10 00:12:18.