Skip to main content

A simple static site generator with live reload

Project description

turbines

A static site generator built with Jinja2.

Inspired by Cactus, a project that is no longer maintained.

What is turbines?

Turbines is a static site generator that allows you to create websites using Jinja-based HTML templates and markdown files. Turbines makes it easy to deploy your site to services like Cloudflare Pages or AWS S3. It supports live reloading during development.

Usage

To install turbines, run:

pip install turbines

or

uv add turbines

To create a new site, run:

turbines create mysite
cd mysite

To build the site, run:

turbines build

To serve the site with live reloading, run:

turbines serve

Templates

Templates are written in Jinja2. You can use any Jinja2 syntax in your templates.

Variables

The site variable is available in all templates and contains information about the site current site, such as the url and the title. The pages variable is also available and contains a map of tags and the pages that have those tags. For example, pages.tags.articles would give you a list of all pages that have the articles tag. The context variable contains the context set in config.yaml.

Functions

The url function is available in all templates and can be used to generate URLs for pages. For example, {% url "test.md" %} would give you the URL for the page generated from test.md.

The static function is also available and can be used to generate URLs for static files. For example, {% static "style.css" %} would give you the URL for the style.css file in the static directory.

Examples

None yet. Coming soon!

Compatibility

Turbines is built with Python 3.12.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

turbines-0.1.6.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

turbines-0.1.6-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file turbines-0.1.6.tar.gz.

File metadata

  • Download URL: turbines-0.1.6.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for turbines-0.1.6.tar.gz
Algorithm Hash digest
SHA256 aa4ddd6916e1ee97dc08916c23fd9cda30deb2be10e8f19ffe30152d45d1a1ca
MD5 e0bbc89535e567868b290532f6de0e4c
BLAKE2b-256 adec609912f71e8403a875143a09d0bc94d248eefde74bb0af237e006ed11090

See more details on using hashes here.

File details

Details for the file turbines-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: turbines-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 14.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for turbines-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 142172b77f3e0418494544efecbd97e77aa85966f617a529a0954e2ad0716151
MD5 7e27e5747b73ec6cdc4c6614f3c500df
BLAKE2b-256 d5d7b1df7ffc68c6c225045ba0c26e4028e02fff1d89b40a311b227513309c95

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page