MCPcopy Index your code
hub / github.com/socketstream/socketstream / selectEngine

Function selectEngine

lib/client/template_engine.js:169–179  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

167 // private
168
169 function selectEngine(p) {
170 var codePath = path.dirname(p); // remove the file name or child directory in recursive call
171 var engine = ss.client.templateEngines[codePath];
172
173 if (engine) {
174 return engine;
175 }
176 if (codePath !== '.') {
177 return selectEngine(codePath || '.');
178 }
179 }
180
181 function wrapTemplate(template, pth, logicPath, opts, options, engine, prevEngine) {
182 var output;

Callers 1

template_engine.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected