Enhancements for sub-assemblies, separate templates and updated tests

Changed to: if (path.extname(fileName).toLowerCase() === ".html") {