Skip to content

Commit

Permalink
example/w-template-logic: explain % (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
asymmetric authored Dec 10, 2024
1 parent ac92bc0 commit da94944
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 da94944

Please sign in to comment.