mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
'use strict' for compiled templates
This commit is contained in:
parent
0da6cd0be5
commit
f54da679ba
@ -491,6 +491,9 @@ TemplateBuilder.prototype = {
|
|||||||
} else {
|
} else {
|
||||||
params = ['out'];
|
params = ['out'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
out.append('"use strict";\n');
|
||||||
|
|
||||||
out.append('function create(__helpers) {\n');
|
out.append('function create(__helpers) {\n');
|
||||||
//Write out the static variables
|
//Write out the static variables
|
||||||
this.writer.flush();
|
this.writer.flush();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user