public CompiledPage ProcessPageFromFile(string pagePath) { AspPageDom page = new AspPageDom(); page.processPage(pagePath); return(CompilePage(page)); }
public CompiledPage ProcessPageFromString(string includePath, string pageString) { AspPageDom page = new AspPageDom(); page.processPage(includePath, pageString); return(CompilePage(page)); }
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)); }