コード例 #1
0
ファイル: MvcApp.cs プロジェクト: ricardoborges/NPortugol
        private void ExecuteView(Route route, SymbolTable model)
        {
            var fviewname = "page";

            var controllerScript = ExtractContent(route.ControllerPhysicalPath);

            route.View = ResolveView(route, model);

            var script = new DefaultScriptBuilder().Parse(ExtractContent(route.ViewPhysicalPath), fviewname)
                         + " " + controllerScript;

            var engine = CreateEngine(script, model.Refactor(fviewname));

            engine.Executar("page", new Infra(HttpContext.Current));
        }