Skip to content

Commit ee5bb76

Browse files
authored
Merge pull request #108 from ember-cli/pass-source-to-compilers
Allow AST plugins to access the raw template contents.
2 parents aa1b193 + cae3b4f commit ee5bb76

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ TemplateCompiler.prototype.initializeFeatures = function initializeFeatures() {
6666

6767
TemplateCompiler.prototype.processString = function (string, relativePath) {
6868
return 'export default ' + utils.template(this.options.templateCompiler, stripBom(string), {
69+
contents: string,
6970
moduleName: relativePath
7071
}) + ';';
7172
};

0 commit comments

Comments
 (0)