Skip to content

Commit

Permalink
Add a Philosophy section to README
Browse files Browse the repository at this point in the history
  • Loading branch information
pelme committed Apr 13, 2024
1 parent 5ac2330 commit bdc4201
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,23 @@ from a Python backend.

- **Familiar concepts from React:** React helped make it popular writing HTML with a programming language. htpy uses a lot of similar constructs.

## Philosophy

htpy generates HTML elements and attributes and provide a few helpers.

htpy does not enforce any particular pattern or style to organize
your pages, components and layouts. That does not mean that htpy cannot be used
to build sophisticated web pages or applications.

Rather the opposite: you are encouraged the leverage the power of Python to
structure your project. Use modules, classes, functions, decorators, list
comprehension, generators, conditionals, static typing and any other feature of
Python to organize your components. This gives you a lot of power and makes htpy
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.

## 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 bdc4201

Please sign in to comment.