示例#1
0
        public static String CustomAppHead(this IApplicationHost host)
        {
            String head = host.ApplicationReader.ReadTextFile("_layout", "_head.html");

            return(head != null?host.GetAppSettings(head) : String.Empty);
        }
示例#2
0
        public static String CustomAppScripts(this IApplicationHost host)
        {
            String scripts = host.ApplicationReader.ReadTextFile("_layout", "_scripts.html");

            return(scripts != null?host.GetAppSettings(scripts) : String.Empty);
        }
示例#3
0
        private String Localize(String source)
        {
            String result = _localizer.Localize(null, source, replaceNewLine: false);

            return(_host.GetAppSettings(result));
        }