Skip to content

Commit

Permalink
w-template-logic: explain %
Browse files Browse the repository at this point in the history
  • Loading branch information
asymmetric authored Dec 9, 2024
1 parent ac92bc0 commit 8ed593d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions example/w-template-logic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ imperatively. That means that template fragments evaluate to `unit`, and the
surrounding OCaml code often needs semicolons. Templates also tend to use
`List.iter` rather than `List.map`.

The `%` and `<%`/`%>` syntax is documented [in the manual](https://aantron.github.io/dream/#templates).

```ocaml
let render_home tasks =
<html>
Expand Down

0 comments on commit 8ed593d

Please sign in to comment.