Show HN: Nitro – a Python static site generator (nitro.sh)

1 points by sswn ↗ HN
Build static sites in Python instead of a template language. Pages are functions, HTML is Python classes, and the build is a folder you can host anywhere.

No complexity, just code.

Its not 'new', but someone could find it useful.

4 comments

[ 5.8 ms ] story [ 115 ms ] thread
Just curious, how do you rebuild on pages with shared components?
The renderer will only render the changed component and then the live reload will kick in if you use the nitro dev option. Since a component is just Python, the component will update everywhere its imported.

If you run nitro build, it will re-compile the whole page (all pages).