Skip to content

Commit

Permalink
Add info on syntax to the README. Closes #18.
Browse files Browse the repository at this point in the history
  • Loading branch information
pelme committed Apr 28, 2024
1 parent c4b9e33 commit b9f9e2b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ scale from a single small Flask project to bigger applications.
[Common patterns](https://htpy.dev/common-patterns/) can give you some ideas
that you can build upon yourself.

## The syntax
Child elements are specified using the `[]` syntax. This may look strange at
first but it has some nice benefits. This clearly separates attributes from
children elements and makes the code more readable. It is implemented using the
`__getitem__` method, just like lists or dicts.

## Installation

[htpy is available on PyPI](https://pypi.org/project/htpy/). You may install the latest version using pip:
Expand Down

0 comments on commit b9f9e2b

Please sign in to comment.