init
This commit is contained in:
commit
22a286b8d2
14 changed files with 288 additions and 0 deletions
8
src/home.ml
Normal file
8
src/home.ml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
open Htmlit
|
||||
|
||||
let get request =
|
||||
let title = "Home" in
|
||||
let h1 = El.h1 [ El.txt title ] in
|
||||
let txt = El.txt "Welcome to my home page" in
|
||||
let doc = Template.render request ~styles:[] ~title [ h1; txt ] in
|
||||
Ok (Drame.Content.Html doc)
|
||||
Loading…
Add table
Add a link
Reference in a new issue