Skip to main content

A static site generator based on the Jinja2 templating engine.

Project description

GSStatic

GS Static is a static website builder built with Python and Jinja2 with inspiration from django-jinja.

Borrows heavily from staticjinja but makes Jinja more of the focus. Uses ideas (and some code) from django-jinja about how the enviroment can be configured.

Supports the idea of an input directory which holds templates to be rendered but adds extra template directories which are added to the template resolution path. In this way the output folder mirrors the input folder with partials stored outside of this structure.

Supports adding a tags directory which holds template tags, global functions, filters and tests that can be automatically added to the enviroment. This is the core path for adding extra code / features to templates.

Context has been simplified to a callable that takes a template name. The same callable is used for all templates. What form this takes and what happens after is up to the user.

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

gsstatic-0.0.1.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

gsstatic-0.0.1-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file gsstatic-0.0.1.tar.gz.

File metadata

  • Download URL: gsstatic-0.0.1.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.4

File hashes

Hashes for gsstatic-0.0.1.tar.gz
Algorithm Hash digest
SHA256 812f2483ed77f3d404a3e11628c95cf64b513373834da0b2bbb919085e84c8f0
MD5 799b3d12e1ee380ae2b3497b5213e717
BLAKE2b-256 90a0734c4ba0647b6738ce8cf6ca1d2b9d48af43fe8d202f72873add5dd58b22

See more details on using hashes here.

File details

Details for the file gsstatic-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: gsstatic-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.4

File hashes

Hashes for gsstatic-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ce2635778f66b6ae83fce417a4ece82205f18bd8194c8c20cc56762fe3a7aaa0
MD5 9f1e43e96ab6b1af77710ebbcd06ea9a
BLAKE2b-256 91fddf8eba4db516ad16edb349ff203da33c1e3e7deddeb4df8c097f2d309e7b

See more details on using hashes here.

Supported by

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