Skip to content

Commit ba9e292

Browse files
committed
Update to Handlebars v4.0 and disable implicit partial indenting because it is incredibly counter-intuitive
1 parent 5ec6ec1 commit ba9e292

File tree

3 files changed

+1222
-638
lines changed

3 files changed

+1222
-638
lines changed

lib/loader/scriptresource.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,11 @@ HandlebarsResource.prototype.buildFunctionString_ = function() {
284284

285285
var template;
286286
try {
287-
template = Handlebars.precompile(source);
287+
// TODO(Taylor): Allow other options to be passed in somehow.
288+
template = Handlebars.precompile(source, {
289+
preventIndent: true
290+
});
291+
288292
} catch (e) {
289293
e.fileName = this.filePath;
290294
var lineNumberMatch = (e+'').match(/Parse error on line (\d+)/);

0 commit comments

Comments
 (0)