Inheritance: IndexBase
 public static string createContentFromT4(UI5ProjectType type, string viewExtension, string mainControllerName)
 {
     var jsonTemplate = new T4.Index
     {
         Session =
             new Dictionary<string, object>
             {
                 {"ControllerName", mainControllerName},
                 {"IsMobile", type == UI5ProjectType.Mobile},
                 {"ViewExtension", viewExtension}
             }
     };
     jsonTemplate.Initialize();
     return jsonTemplate.TransformText();
 }
Beispiel #2
0
        public static string createContentFromT4(UI5ProjectType type, string viewExtension, string mainControllerName)
        {
            var jsonTemplate = new T4.Index
            {
                Session =
                    new Dictionary <string, object>
                {
                    { "ControllerName", mainControllerName },
                    { "IsMobile", type == UI5ProjectType.Mobile },
                    { "ViewExtension", viewExtension }
                }
            };

            jsonTemplate.Initialize();
            return(jsonTemplate.TransformText());
        }