diff --git a/compiler/Compiler.js b/compiler/Compiler.js index 5fe75750c..5971bbf5e 100644 --- a/compiler/Compiler.js +++ b/compiler/Compiler.js @@ -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 diff --git a/compiler/index.js b/compiler/index.js index 17f642ee7..e142909f2 100644 --- a/compiler/index.js +++ b/compiler/index.js @@ -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;