Skip to content

Commit

Permalink
Merge branch 'main' of github.com:basxsoftwareassociation/htmlgenerator
Browse files Browse the repository at this point in the history
  • Loading branch information
saemideluxe committed Nov 3, 2022
2 parents f57e5c6 + 3e6d682 commit eb91cbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ In order to allow the building of a dynamic page virtual elements need to be use
- ```htmlgenerator.BaseElement```: The base for all elements, can also be used to group elements without generating output by itself
- ```htmlgenerator.If```: Lazy evaluates the first argument at render time and returns the first child on true and the second child on false
- ```htmlgenerator.Iterator```: Takes an iterator which can be a lazy value and renders the child element for each iteration
- ```htmlgenerator.Fragment```: Allows to name a part of the tree which can then selectively be rendered by setting the ```fragment``` parameter when calling ```hg.render```
- ```htmlgenerator.Fragment```: Allows to name a part of the tree which can then selectively be rendered by setting the ```fragment``` parameter when calling ```hg.render``` (inspired by https://htmx.org/essays/template-fragments/)

Example:

Expand Down

0 comments on commit eb91cbb

Please sign in to comment.