public void SaveTranslation(string path)
        {
            IAsset file = new Asset(path);
            CoffeeScriptTranslator translator = new CoffeeScriptTranslator();
            var compiled = translator.Translate(file);

            var normalScript = path.Replace("." + FileExtension, ".js");

            using (var compiledScript = File.CreateText(HostingEnvironment.MapPath(normalScript)))
            {
                compiledScript.Write(compiled.Content);
                compiledScript.Close();
            }
        }
        public IEnumerable <Exception> ValidateTranslation(string path)
        {
            var retVal = new List <Exception>();

            try
            {
                IAsset file = new Asset(path);
                CoffeeScriptTranslator translator = new CoffeeScriptTranslator();
                translator.Translate(file);
            }
            catch (AssetTranslationException ex)
            {
                retVal.Add(ex);
            }

            return(retVal);
        }