MCPcopy
hub / github.com/rendrjs/rendr / getAppAttributes

Function getAppAttributes

server/middleware/initApp.js:35–40  ·  view source on GitHub ↗

* Allow `appAttributes` to be a function for lazy-instantiation based on `req` and `res`.

(attrs, req, res)

Source from the content-addressed store, hash-verified

33 * Allow `appAttributes` to be a function for lazy-instantiation based on `req` and `res`.
34 */
35 function getAppAttributes(attrs, req, res) {
36 if (typeof attrs === 'function') {
37 attrs = attrs(req, res);
38 }
39 return attrs || {};
40 }
41
42 var attributes = getAppAttributes(appAttributes, req, res);
43

Callers 1

initApp.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected