Skip to content
Snippets Groups Projects
Commit a412160f authored by Loïc Correnson's avatar Loïc Correnson
Browse files

[server] section builder

parent 4f8f6591
No related branches found
No related tags found
No related merge requests found
...@@ -214,9 +214,8 @@ let pp_one_page ~root ~page ~title body = ...@@ -214,9 +214,8 @@ let pp_one_page ~root ~page ~title body =
with Sys_error e -> with Sys_error e ->
Senv.fatal "Could not open file %s for writing: %s" full_path e Senv.fatal "Could not open file %s for writing: %s" full_path e
let rec build contents = function (* Build section contents in reverse order *)
| [] -> contents let build d s = List.fold_left (fun d s -> s() :: d) d s
| s::sections -> build (s () :: contents) sections
let dump ~root ?(meta=true) () = let dump ~root ?(meta=true) () =
begin begin
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment