コード例 #1
0
        static NVelocityViewEngine()
        {
            string targetViewFolder = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "views");

            //DEFAULT_PROPERTIES.Add(RuntimeConstants.RESOURCE_LOADER, "file");
            DEFAULT_PROPERTIES.Add(RuntimeConstants.FILE_RESOURCE_LOADER_PATH, targetViewFolder);
            DEFAULT_PROPERTIES.Add("file.resource.loader.class", "Kooboo.CMS.Sites.TemplateEngines.NVelocity.MvcViewEngine.FileResourceLoaderEx\\,Kooboo.CMS.Sites.TemplateEngines.NVelocity");


            Default = new NVelocityViewEngine();
        }
コード例 #2
0
ファイル: NVelocityViewEngine.cs プロジェクト: Godoy/CMS
        static NVelocityViewEngine()
        {
            string targetViewFolder = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "views");
            //DEFAULT_PROPERTIES.Add(RuntimeConstants.RESOURCE_LOADER, "file");
            DEFAULT_PROPERTIES.Add(RuntimeConstants.FILE_RESOURCE_LOADER_PATH, targetViewFolder);
            DEFAULT_PROPERTIES.Add("file.resource.loader.class", "Kooboo.CMS.Sites.TemplateEngines.NVelocity.MvcViewEngine.FileResourceLoaderEx\\,Kooboo.CMS.Sites.TemplateEngines.NVelocity");

            Default = new NVelocityViewEngine();
        }