nitweb: compute model index at startup
authorAlexandre Terrasa <alexandre@moz-code.org>
Thu, 14 Jun 2018 19:57:22 +0000 (15:57 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Thu, 5 Jul 2018 00:43:39 +0000 (20:43 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

src/nitweb.nit

index 4ba30f5..9e9d54f 100644 (file)
@@ -87,6 +87,7 @@ private class NitwebPhase
        redef fun process_mainmodule(mainmodule, mmodules)
        do
                var config = build_config(toolcontext, mainmodule)
+               config.model.index # pre load model index
                config.model.nitdoc_md_processor = config.md_processor
 
                var app = new App