Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Promises #193

Merged
merged 6 commits into from May 26, 2015
Merged

Add support for Promises #193

merged 6 commits into from May 26, 2015

Conversation

alexsomeoddpilot
Copy link
Contributor

If no callback fn is provided, render functions should return Promises which either resolve to the compiled HTML or an error.

No changes are made to the regular API, only the addition of the return value when no callback is provided.

@doowb
Copy link
Collaborator

doowb commented May 26, 2015

@alexsomeoddpilot this looks great!

Since you're adding a promise library dependency, I'd prefer to use bluebird. When that's updated, I'll test it out and merge it in.

Thanks.

@alexsomeoddpilot
Copy link
Contributor Author

No problem! I've switched to using bluebird with a couple of lines in 8d6a10b and the tests should stay the same.

@doowb
Copy link
Collaborator

doowb commented May 26, 2015

👍 looks good.

doowb added a commit that referenced this pull request May 26, 2015
@doowb doowb merged commit e1bb2d4 into tj:master May 26, 2015
@doowb
Copy link
Collaborator

doowb commented May 26, 2015

This has been released in 0.13.0.

@alexsomeoddpilot
Copy link
Contributor Author

Thanks! I'll work on writing up some usage of the promise API in the readme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants