 
     getModuleRoot: -> @config.templateModuleRoot
 
-    stripNewlines: (content)->
-        content.replace(/\r?\n/g, '\\n\' +\n    \'')
-
-    # Normalize backslashes and strip newlines.
-    escapeContent: (content)->
-        @stripNewlines(content)
-        .replace(/\\/g, '\\\\')
-        .replace(/'/g, '\\\'')
-
     render: (code, path)->
         extension = path.substr(path.lastIndexOf('.') + 1)
         TemplateWatcher.renderers[extension].call(this, code, path)


TemplateWatcher.renderers =
    html: (code, path)->
        @wrap path, code, code
    jade: (code, path)->
        options = filename: path
        content = require('jade').render(code, options)
        @wrap path, content, code

module.exports = TemplateWatcher

        content = """
        angular.module('#{module}', [])
        .run(function($templateCache){
            $templateCache.put('#{shortPath}', '#{content}');
        });
        """

