private static string ProcessarScript(string caminhoRelativo) { var bundle = new TemplateBundle(caminhoRelativo); try { BundleTable.Bundles.Add(bundle); var template = new TemplateItem(bundle); return(template.ToString()); } finally { BundleTable.Bundles.Remove(bundle); } }