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.5.tar.gz (9.0 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.5-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: turbines-0.1.5.tar.gz
  • Upload date:
  • Size: 9.0 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.5.tar.gz
Algorithm Hash digest
SHA256 bc0c9905bf7385a35ee424ba31dc7c1383c4c52057a4957b0b6ea87d593f673b
MD5 3c17e875efcde5d8a7517da4a1c1d2e5
BLAKE2b-256 a858fe4d623642f83b479d91905054c35203cc6c331ad54f0329e3fcd35e9cd1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: turbines-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 13.2 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e78022a409a5cd94d330a6c89cca6f2caf9d1c7f89568292fbf64ee899257007
MD5 80b3a9ebedb262d2f1fbfa2e468e3dbb
BLAKE2b-256 ab554812ad1abe98b8b0d76ebedc260eb3951a3265055ffe4ee29d4b33c5ebde

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