(* interface functions ******************************************************)
-let export_item export_obj si g = function
- | Some obj ->
- let _, uri, bind = obj in
+let export_unit export_entry si g = function
+ | Some entry ->
+ let _, uri, bind = entry in
let path = path_of_uri uri in
let _ = Sys.command (Printf.sprintf "mkdir -p %s" (F.dirname path)) in
let och = open_out (path ^ obj_ext) in
let frm = Format.formatter_of_out_channel och in
Format.pp_set_margin frm max_int;
Format.fprintf frm "@[<v>%t%t%t%a%t@]@."
- pp_head pp_doctype (open_entry si g) export_obj obj close_entry;
+ pp_head pp_doctype (open_entry si g) export_entry entry close_entry;
close_out och
| None -> ()