 		@updateHtmlImportsMap htmlImports
 
 		return @JS unless @JS.hasImports
-		@htmlImportReplace()
-		@templateVarReplace()
+
+		@inlineImports()
 
 		HtmlImports[@JS.path].contents.compiled = @JS.contents
+		# Help.logJson HtmlImports
 		@JS
 
 	# Private Methods

					return console.error eMsg.error
				fse.outputFile jsPath, HtmlImports[jsPath].contents.uncompiled

	htmlImportReplace: -> # :void
		return unless !!HtmlImports[@JS.path]
		for htmlPath, htmlImport of HtmlImports[@JS.path].imports
			@JS.contents = @JS.contents.replace Regx.htmlImport(htmlImport.statement), ''

	templateVarReplace: -> # :void
		return unless !!HtmlImports[@JS.path]
		for htmlPath, htmlImport of HtmlImports[@JS.path].imports
			@JS.contents = @JS.contents.replace Regx.templateVar(htmlImport.variable), "`#{htmlImport.html}`"

# GULP PLUGIN
# ===========

				e.message = "html import file in #{@JS.relPath} doesn't exist: #{importPath}"
				console.error e.message.error
				continue
			htmlImport = { statement, path: importPath, variable, html }
			htmlImports[importDistPath] = htmlImport
		htmlImports

