public JavaScriptResult Data(string fileName)
        {
            string fullName = string.Format("{0}.js", fileName);
            string file     = FileSystem.DataFileSourcePath(fullName, Resources.Culture);
            JavaScriptSourceBuilder jsBuilder = new JavaScriptSourceBuilder(this.Config);

            return(JavaScript(jsBuilder.ReplaceResourceUrls(file)));
        }
        public JavaScriptResult Js(string fileName)
        {
            string fullName = string.Format("{0}.js", fileName);
            string file     = string.Format("{0}/{1}", FileSystem.JsDirectory, fullName);
            string culture  = this.Resources.Culture;
            IDictionary <string, string> localizedStrings = this.LocalizedSampleStringRepository.GetLocalizedSampleStrings(this.FileSystem.JsMetadataFile);
            JavaScriptSourceBuilder      jsBuilder        = new JavaScriptSourceBuilder(this.Config);

            return(JavaScript(jsBuilder.ProcessJavaScriptFile(file, localizedStrings)));
        }
        public JavaScriptResult Js(string fileName)
        {
            string fullName = string.Format("{0}.js", fileName);
            string file = string.Format("{0}/{1}", FileSystem.JsDirectory, fullName);
            string culture = this.Resources.Culture;
            IDictionary<string, string> localizedStrings = this.LocalizedSampleStringRepository.GetLocalizedSampleStrings(this.FileSystem.JsMetadataFile);
            JavaScriptSourceBuilder jsBuilder = new JavaScriptSourceBuilder(this.Config);

            return JavaScript(jsBuilder.ProcessJavaScriptFile(file, localizedStrings));
        }
 public JavaScriptResult Data(string fileName)
 {
     string fullName = string.Format("{0}.js", fileName);
     string file = FileSystem.DataFileSourcePath(fullName, Resources.Culture);
     JavaScriptSourceBuilder jsBuilder = new JavaScriptSourceBuilder(this.Config);
     return JavaScript(jsBuilder.ReplaceResourceUrls(file));
 }