fraserxu/gulp-html2js — pull request #8 by douglas-treadwell (2014-08-26 21:05:29+00:00)
Title: Fixing bug in gulp-html2js when used in strict mode context

When the generated templates are used in strict mode, such as occurs when generated templates are concatenated to a file which has set 'use strict', gulp-html2js breaks with error 'app is undefined', because it should be using the variable 'module' rather than 'app'. Gulp-html2js's own strict mode configuration sets strict mode within the generated function scope, and does not make it compatible with 'use strict' used globally. Whether or not the templates are used in a strict mode context, this was still a bug (using variable app rather than module).