From dd81378816162ed51519e0d7ce26083f8158be3a Mon Sep 17 00:00:00 2001 From: Brian Woodward Date: Mon, 25 Jan 2016 18:56:36 -0500 Subject: [PATCH] Create new instance of Handlebars. --- lib/report/html.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/report/html.js b/lib/report/html.js index ad8fdf04..1dab26d5 100644 --- a/lib/report/html.js +++ b/lib/report/html.js @@ -4,7 +4,7 @@ */ /*jshint maxlen: 300 */ -var handlebars = require('handlebars'), +var handlebars = require('handlebars').create(), defaults = require('./common/defaults'), path = require('path'), fs = require('fs'), @@ -496,7 +496,7 @@ Report.mix(HtmlReport, { return { fromParent: function (node) { var relativeName = cleanPath(node.relativeName); - + return node.kind === 'dir' ? relativeName + 'index.html' : relativeName + '.html'; }, ancestorHref: function (node, num) {