-
Notifications
You must be signed in to change notification settings - Fork 41
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
Custom template not displayed in browser #14
Comments
I think html generated in callback via render in too late and function returns default empty output:
|
Not quite sure what is going on here, paging @agraboso! |
Any movement on this? |
Paging @agraboso again! |
I believe @akobashikawa's assessment is correct. The obvious fix would be to render the template synchronously, but |
Thanks @agraboso. Would that not end up to blocking the request though? Is there any way to handle this async? Maybe we could take in |
@artcommacode: I don't see how to do this async at all. After a good deal of thought, I think the best way to deal with this is to delegate rendering to the user in exactly the way flash does — so maybe we should deprecate this module and point users to flash. |
so we can't use custom template for this package .... |
I am using express with nunjucks:
In a template, I try:
I put console.logs in express-messages/index.js to ensure output is ok. However, browser is not showing.
The text was updated successfully, but these errors were encountered: