Home / Function/ render() — express Function Reference

render() — express Function Reference

Architecture documentation for the render() function in github-view.js from the express codebase.

Entity Profile

Dependency Diagram

graph TD
  591b1903_ff64_3ad7_3214_0cbf2c2d0a2c["render()"]
  a1fbba28_0f2d_6fc3_7626_9dcaa7d06edb["github-view.js"]
  591b1903_ff64_3ad7_3214_0cbf2c2d0a2c -->|defined in| a1fbba28_0f2d_6fc3_7626_9dcaa7d06edb
  style 591b1903_ff64_3ad7_3214_0cbf2c2d0a2c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

examples/view-constructor/github-view.js lines 36–53

GithubView.prototype.render = function(options, fn){
  var self = this;
  var opts = {
    host: 'raw.githubusercontent.com',
    port: 443,
    path: this.path,
    method: 'GET'
  };

  https.request(opts, function(res) {
    var buf = '';
    res.setEncoding('utf8');
    res.on('data', function(str){ buf += str });
    res.on('end', function(){
      self.engine(buf, options, fn);
    });
  }).end();
};

Domain

Subdomains

Frequently Asked Questions

What does render() do?
render() is a function in the express codebase, defined in examples/view-constructor/github-view.js.
Where is render() defined?
render() is defined in examples/view-constructor/github-view.js at line 36.

Analyze Your Own Codebase

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

Try Supermodel Free