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

Resolve paths for views asynchronously #2653

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

aredridel
Copy link
Contributor

This eliminates the only post-startup synchronous I/O in Express.

In addition, this makes the view.lookup method non-private, intended to be used
by view engines to resolve paths to partials, and, if the View class is
extended, could be used for other resources such as internationalized messages.

@dougwilson
Copy link
Contributor

Nice! Anyway we can add to this a way to prevent stampeding (which the sync version protected from) to the default lookup implementation?

@aredridel
Copy link
Contributor Author

Oh, yes! I think I could work that in.

@aredridel
Copy link
Contributor Author

Updated.

@aredridel aredridel force-pushed the async-view-resolve branch from ef1c5dd to 1fe4c1e Compare May 18, 2015 19:56
@aredridel aredridel force-pushed the async-view-resolve branch from 1fe4c1e to e0a65cc Compare May 18, 2015 20:19
@aredridel aredridel force-pushed the async-view-resolve branch from e0a65cc to 4846365 Compare May 18, 2015 20:45
This allows extended view classes to implement more interesting lookup
methods without changing the interface. Removed useless ext parameter.
@aredridel aredridel force-pushed the async-view-resolve branch from a048a24 to 4de612f Compare May 19, 2015 21:28
@dougwilson dougwilson self-assigned this May 20, 2015
@dougwilson dougwilson force-pushed the master branch 2 times, most recently from 5f268a4 to 9848645 Compare July 31, 2015 20:58
@gabrielcsapo
Copy link

👍

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

Successfully merging this pull request may close these issues.

4 participants