lookup() — express Function Reference
Architecture documentation for the lookup() function in view.js from the express codebase.
Entity Profile
Dependency Diagram
graph TD 548ad3d1_f590_9d85_c4a5_d888f7aea078["lookup()"] f3f6b3ab_6685_aeb3_01fc_79fc5a3a9b41["view.js"] 548ad3d1_f590_9d85_c4a5_d888f7aea078 -->|defined in| f3f6b3ab_6685_aeb3_01fc_79fc5a3a9b41 67281fa0_9420_7225_f98d_64e63022d951["View()"] 67281fa0_9420_7225_f98d_64e63022d951 -->|calls| 548ad3d1_f590_9d85_c4a5_d888f7aea078 544d2644_38b4_9ea5_7360_cfca18032919["resolve()"] 548ad3d1_f590_9d85_c4a5_d888f7aea078 -->|calls| 544d2644_38b4_9ea5_7360_cfca18032919 style 548ad3d1_f590_9d85_c4a5_d888f7aea078 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
lib/view.js lines 104–123
View.prototype.lookup = function lookup(name) {
var path;
var roots = [].concat(this.root);
debug('lookup "%s"', name);
for (var i = 0; i < roots.length && !path; i++) {
var root = roots[i];
// resolve the path
var loc = resolve(root, name);
var dir = dirname(loc);
var file = basename(loc);
// resolve the file
path = this.resolve(dir, file);
}
return path;
};
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does lookup() do?
lookup() is a function in the express codebase, defined in lib/view.js.
Where is lookup() defined?
lookup() is defined in lib/view.js at line 104.
What does lookup() call?
lookup() calls 1 function(s): resolve.
What calls lookup()?
lookup() is called by 1 function(s): View.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free