MCPcopy Index your code
hub / github.com/nodeSolidServer/node-solid-server / initDefaultViews

Function initDefaultViews

lib/server-config.mjs:114–121  ·  view source on GitHub ↗

* Ensures that the customizable 'views' folder exists for this installation * (copies it from default views if not). * * @param configPath {string} Location of configuration directory (from the * local config.json file or passed in as cli parameter) * * @return {string} Path to the views dir

(configPath)

Source from the content-addressed store, hash-verified

112 * @return {string} Path to the views dir
113 */
114function initDefaultViews (configPath) {
115 const defaultViewsPath = path.join(__dirname, '../default-views')
116 const viewsPath = path.join(configPath, 'views')
117
118 ensureDirCopyExists(defaultViewsPath, viewsPath)
119
120 return viewsPath
121}
122
123/**
124 * Makes sure that the various template directories (email templates, new

Callers

nothing calls this directly

Calls 1

ensureDirCopyExistsFunction · 0.85

Tested by

no test coverage detected