mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Marko v3: Provide dummy getLastModified() method for compatibility
This commit is contained in:
parent
87ed39139b
commit
b6d0dbcd7f
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user