Exemplo n.º 1
0
        public void Set()
        {
            JsResource t4JsResource = new JsResource();

            t4JsResource.Session = new Dictionary <string, object>();


            string pageContent = t4JsResource.TransformText();

            File.WriteAllText(System.Web.Hosting.HostingEnvironment.MapPath("~/App/Resources/jsResource.js"), pageContent);
        }
Exemplo n.º 2
0
        public void Set()
        {
            Settings   settings     = settingsService.Get();
            JsResource t4JsResource = new JsResource();

            t4JsResource.Session = new Dictionary <string, object>();
            t4JsResource.Session.Add("settings", settings);
            t4JsResource.Initialize();

            string pageContent = t4JsResource.TransformText();

            File.WriteAllText(System.Web.Hosting.HostingEnvironment.MapPath("~/App/Resources/jsResource.js"), pageContent);
        }