Add MLI files

This commit is contained in:
2022-08-31 13:41:40 -06:00
parent 3ba3c77f0a
commit e36282150e
5 changed files with 94 additions and 2 deletions

14
render/render.mli Normal file
View File

@@ -0,0 +1,14 @@
open Database
module Render :
sig
val not_found_template : string
val error_template : string
val header_template : string
val footer_template : string
val render_page : string -> string
val generate_link : BlogPost.t -> string
val handle_error : [< Caqti_error.t ] -> Dream.response Lwt.t
val render_blog_post : Dream.request -> Dream.response Lwt.t
val render_blog_index : Dream.request -> Dream.response Lwt.t
end