Skip to content

Commit

Permalink
Provide a renderer type
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorNicollet committed Sep 6, 2012
1 parent 7739f62 commit 2f313d9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
12 changes: 12 additions & 0 deletions src/html.ml
Expand Up @@ -82,6 +82,18 @@ module Convenience = struct

end

type renderer =
?css:string list
-> ?js:string list
-> ?head:string
-> ?favicon:string
-> ?body_classes:string list
-> title:string
-> writer
-> JsCode.t
-> string


let print_page ?(css=[]) ?(js=[]) ?(head="") ?favicon ?(body_classes=[]) ~title writer more_js =

let html = create () in
Expand Down
4 changes: 3 additions & 1 deletion src/html.mli
Expand Up @@ -27,7 +27,7 @@ module Convenience : sig

end

val print_page :
type renderer =
?css:string list
-> ?js:string list
-> ?head:string
Expand All @@ -37,3 +37,5 @@ val print_page :
-> writer
-> JsCode.t
-> string

val print_page : renderer

0 comments on commit 2f313d9

Please sign in to comment.