diff --git a/content/documentation/html-rendering.md b/content/documentation/html-rendering.md index ce489e91..d98bc11e 100644 --- a/content/documentation/html-rendering.md +++ b/content/documentation/html-rendering.md @@ -67,13 +67,16 @@ To conditionally render parts of the HTML, the `if` expression can be used. # Evaluates to "

a

c

" ``` -## List rendering +## Rendering sequential data structures -Similar to conditional rendering, the `for` expression can be used to render lists. +Similar to conditional rendering, the `for` expression can be used to render iterables such as vectors, lists and sets. ```phel (html [:ul (for [i :range [0 3]] [:li i])]) # Evaluates to "" + +(html [:ul (for [i :in [3 4 5]] [:li i])]) +# Evaluates to "" ``` ## Raw Html