Exemplo n.º 1
0
        public CompiledPage ProcessPageFromFile(string pagePath)
        {
            AspPageDom page = new AspPageDom();

            page.processPage(pagePath);
            return(CompilePage(page));
        }
Exemplo n.º 2
0
        public CompiledPage ProcessPageFromString(string includePath, string pageString)
        {
            AspPageDom page = new AspPageDom();

            page.processPage(includePath, pageString);
            return(CompilePage(page));
        }
Exemplo n.º 3
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));
        }