Marko v3: Provide dummy getLastModified() method for compatibility

This commit is contained in:
Patrick Steele-Idem 2016-02-09 15:22:09 -07:00
parent 87ed39139b
commit b6d0dbcd7f
2 changed files with 11 additions and 0 deletions

View File

@ -79,6 +79,7 @@ class Compiler {
// STAGE 1: Parse the template to produce the initial AST
var ast = this.parser.parse(src, context);
context.root = ast;
// console.log('ROOT', JSON.stringify(ast, null, 2));
// STAGE 2: Transform the initial AST to produce the final AST

View File

@ -118,11 +118,21 @@ function checkUpToDate(templateFile, templateJsFile) {
return false; // TODO Implement checkUpToDate
}
function getLastModified(path, options, callback) {
if (typeof options === 'function') {
callback = options;
options = null;
}
callback(null, null); // TODO Implement getLastModified
}
exports.createBuilder = createBuilder;
exports.compileFile = compileFile;
exports.compile = compile;
exports.defaultOptions = defaultOptions;
exports.checkUpToDate = checkUpToDate;
exports.getLastModified = getLastModified;
exports.createWalker = createWalker;
exports.builder = Builder.DEFAULT_BUILDER;