diff options
author | Marius Peter <marius.peter@tutanota.com> | 2025-02-02 17:08:52 +0100 |
---|---|---|
committer | Marius Peter <marius.peter@tutanota.com> | 2025-02-02 17:08:52 +0100 |
commit | aacec6588c3aebffda6c6221b02622576c85c407 (patch) | |
tree | 213da645d447ac0e82a9209412f94fa78a8bc594 /lib/handlers.ml | |
parent | 6e8e49ba49beeeb63e1e027fc23e8883a1185109 (diff) |
Change Views render function return type.
All Views submodules' render functions now return a Dream_html node
promise, rather than the node itself.
Diffstat (limited to 'lib/handlers.ml')
-rw-r--r-- | lib/handlers.ml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/handlers.ml b/lib/handlers.ml index 1f6d920..7c80bcb 100644 --- a/lib/handlers.ml +++ b/lib/handlers.ml @@ -1,4 +1,6 @@ -let ogit_root _ = Dream_html.respond @@ Views.Ogit_root.render () +open Lwt.Infix + +let ogit_root _ = Views.Ogit_root.render () >>= Dream_html.respond let repo_root repo_name = - Dream_html.respond @@ Lwt_main.run @@ Views.Repo_root.render repo_name + Views.Repo_root.render repo_name >>= Dream_html.respond |