MCPcopy
hub / github.com/janl/mustache.js / getContents

Function getContents

test/render-helper.js:6–12  ·  view source on GitHub ↗
(testName, ext)

Source from the content-addressed store, hash-verified

4var _files = path.join(__dirname, '_files');
5
6function getContents (testName, ext) {
7 try {
8 return fs.readFileSync(path.join(_files, testName + '.' + ext), 'utf8');
9 } catch (ex) {
10 return null;
11 }
12}
13
14function getView (testName) {
15 var view = getContents(testName, 'js');

Callers 3

getViewFunction · 0.85
getPartialFunction · 0.85
getTestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected