Created
May 1, 2015 00:34
-
-
Save orlaqp/1145c531c8a14dd1f252 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# generate document with data | |
generatePreview = (content, data, callback) -> | |
Meteor.call 'generatePreview', content, data, (error, result) -> | |
callback && callback(error, result) | |
waitForPreview = Meteor.wrapAsync(generatePreview, this) | |
waitForPreview currentTemplate, sampleData, (error, result) -> | |
# at this point is where I need the original context | |
debugger |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment