Skip to main content

Super simple Jinja2 based staticsite generator.

Project description

StaticSite

Super simple static site builder.

  1. Create a folder called src.
  2. Put your Jinja templates there.
  3. Run python -m staticsite build --src src --target www
  4. Static site has been built and provided in www folder.
  5. Create a staticsite.yaml file to specify variables and plugins.
mkdir src

cat << EOF >> src/.base.html
<!doctype html>
<html lang='en'>
  <body>
      <h1>Example</h1>
    {% block content %}{% endblock %}
  </body>
</html>
EOF


cat << EOF >> src/index.html
{% extends '.base.html' %}
{% block content %}
Hi
{% endblock %}
EOF


python -m staticsite build --target docs


tree
# .
# ├── src
# │   ├── .base.html  # Files starting with . are ignored
# │   └── index.html
# │
# └── docs
#     ├── index.html

Documentation

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

staticsite-0.1.4.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

staticsite-0.1.4-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

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