Home / Function/ render() — express Function Reference

render() — express Function Reference

Architecture documentation for the render() function in app.engine.js from the express codebase.

Entity Profile

Dependency Diagram

graph TD
  6e190fef_0b08_616a_4bcd_c8c4c518fc1e["render()"]
  0c046e1e_f9fd_39b5_bc25_04711f9f350c["app.engine.js"]
  6e190fef_0b08_616a_4bcd_c8c4c518fc1e -->|defined in| 0c046e1e_f9fd_39b5_bc25_04711f9f350c
  style 6e190fef_0b08_616a_4bcd_c8c4c518fc1e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

test/app.engine.js lines 8–14

function render(path, options, fn) {
  fs.readFile(path, 'utf8', function(err, str){
    if (err) return fn(err);
    str = str.replace('{{user.name}}', options.user.name);
    fn(null, str);
  });
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does render() do?
render() is a function in the express codebase, defined in test/app.engine.js.
Where is render() defined?
render() is defined in test/app.engine.js at line 8.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free