contrib/nitiwiki: move `render` to `wiki_base`
authorAlexandre Terrasa <alexandre@moz-code.org>
Thu, 7 May 2015 05:34:05 +0000 (01:34 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Thu, 7 May 2015 14:03:53 +0000 (10:03 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

contrib/nitiwiki/src/wiki_base.nit
contrib/nitiwiki/src/wiki_html.nit

index d808eaa..dd1e2d6 100644 (file)
@@ -72,6 +72,9 @@ class Nitiwiki
                end
        end
 
+       # Render output.
+       fun render do end
+
        # Show wiki status.
        fun status do
                print "nitiWiki"
index 3427016..2bb8f8c 100644 (file)
@@ -20,7 +20,8 @@ import wiki_base
 redef class Nitiwiki
 
        # Render HTML output looking for changes in the markdown sources.
-       fun render do
+       redef fun render do
+               super
                if not root_section.is_dirty and not force_render then return
                var out_dir = expand_path(config.root_dir, config.out_dir)
                out_dir.mkdir