Skip to content

Commit

Permalink
Reformat examples
Browse files Browse the repository at this point in the history
  • Loading branch information
yawaramin committed Dec 14, 2024
1 parent db82e3e commit 6d1f63a
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ let page req =
label [for_ "what-you-think"] [txt "Tell us what you think!"];
input [name "what-you-think"; id "what-you-think"];
input [type_ "submit"; value "Send"] ] ] ]
input [type_ "submit"; value "Send"];
];
];
]
(* Integrated with Dream response *)
let handler req = Dream_html.respond (page req)
Expand Down Expand Up @@ -132,11 +135,12 @@ are statically enforced as childless:

```ocaml
let entry =
input
[ if should_focus then autofocus else null_;
id "email";
name "email";
value "Email address" ]
input [
if should_focus then autofocus else null_;
id "email";
name "email";
value "Email address";
]
```

You can also embed HTML comments in the generated document:
Expand Down

0 comments on commit 6d1f63a

Please sign in to comment.