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

Support for async rendering with ejs #314

Merged
merged 1 commit into from
May 24, 2022
Merged

Support for async rendering with ejs #314

merged 1 commit into from
May 24, 2022

Conversation

TTPO100AJIEX
Copy link
Contributor

@TTPO100AJIEX TTPO100AJIEX commented May 24, 2022

According to #312 , ejs rendering with async: true did not work properly. This pull request does nothing but fixes this issue by awaiting the cachedPage before sending it back to the client if the rendering is occurring with ejs as an engine and async: true as an option.
I am not very proficient at making pull requests, so feel free to correct me if I am doing something wrong. Thanks.

closes #312

Checklist

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mcollina mcollina merged commit c6be666 into fastify:master May 24, 2022
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.

async: true as an option of .view() for ejs causes an error
3 participants