예제 #1
0
        public CompiledPage ProcessPageFromString(string includePath, string pageString)
        {
            AspPageDom page = new AspPageDom();

            page.processPage(includePath, pageString);
            return(CompilePage(page));
        }
예제 #2
0
        private CompiledPage CompilePage(AspPageDom page)
        {
            ScriptSource src          = _engine.CreateScriptSource(new VBScriptStringContentProvider(page.Code, page.Mapper), page.PagePath, SourceCodeKind.File);
            CompiledCode compiledCode = src.Compile();

            return(new CompiledPage(compiledCode, page.Literals));
        }
예제 #3
0
        public CompiledPage ProcessPageFromFile(string pagePath)
        {
            AspPageDom page = new AspPageDom();

            page.processPage(pagePath);
            return(CompilePage(page));
        }