MCPcopy Create free account
hub / github.com/codecombat/codecombat / read

Function read

compile-static-templates.js:37–45  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

35
36const productFallbackPlugin = {
37 read(path) {
38 if (!fs.existsSync(path)) {
39 const other = path.replace(/pug$/, `${productSuffix}.pug`);
40 if (fs.existsSync(other)) {
41 return load.read(other);
42 }
43 }
44 return load.read(path);
45 }
46};
47
48const compile = function(contents, locals, filename, cb) {

Callers 1

readAnnouncementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected