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

render should only call next after the rendering engine is done #646

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jfremy
Copy link
Contributor

@jfremy jfremy commented Jan 11, 2015

With ejs 2.x, compound stops working.

The reason is that the current code assumes the render engine is synchronous and calls next after making its last render call. This is not a valid expectation (ejs does not follow this).

With this change, next is only called after the full rendering is done.

Fix compoundjs with ejs 2.x (1.x still works)

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.

1 participant