Skip to main content

friendly generation of websites with jinja2 templates

Project description

jinja2html

Python 3.7 License: GPL v3

jinja2html takes your jinja2 templates and outputs HTML.

More importantly, it supports developer-friendly live reloading so that you can create that masterpiece of a static website without ripping your hair out.

Why jinja2html?

Blogging frameworks are a dime a dozen. But what if you don't want to write a blog? What if you wanted to make a static landing page, but without all that client-heavy nonsense like React/Vue/Angular/etc?

That's where jinja2html comes in.

No fancy bells and whistles, no bull$hit, just your bold artisitic vision + jinja2html.

Install

pip install jinja2html

This installs the CLI command, jinja2html, which can be used to generate html or start the local development server.

Usage

usage: jinja2html.py [-h] [--generate] [--ignore IGNORE [IGNORE ...]] [--port PORT]

Developer friendly rendering of jinja2 templates.

optional arguments:
  -h, --help            show this help message and exit
  --generate            render all jinja2 files in the current directory, no livereload
  --ignore IGNORE [IGNORE ...]
                        folders to ignore
  --port PORT           serve website on this port

Examples

# run in dev mode, in the current directory
jinja2html

# generate html files for use in prod
jinja2html --generate

# generate html files for use in prod and ignore folders Foo/ and Bar/
jinja2html --generate --ignore Foo/ Bar/

# run in dev mode, on port 8080 and ignore folder hello/world/
jinja2html --port 8080 --ignore hello/world/

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

jinja2html-0.2.1.tar.gz (19.1 kB view details)

Uploaded Source

Built Distribution

jinja2html-0.2.1-py3-none-any.whl (24.0 kB view details)

Uploaded Python 3

File details

Details for the file jinja2html-0.2.1.tar.gz.

File metadata

  • Download URL: jinja2html-0.2.1.tar.gz
  • Upload date:
  • Size: 19.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.5

File hashes

Hashes for jinja2html-0.2.1.tar.gz
Algorithm Hash digest
SHA256 ce9a1b2c92a1c32498c6c39765b50b06e35e50ddc360a64bf2ce8cd2aaa55e45
MD5 217ef28ec11f067ce282d5cb529574fc
BLAKE2b-256 cacc150ab61c74e9772c91f3c9e3ce960bbc33046c6108cca8daa41d5fa14687

See more details on using hashes here.

File details

Details for the file jinja2html-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: jinja2html-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 24.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.5

File hashes

Hashes for jinja2html-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d944770889bd94a25b5cb3a102b9ef83b922ab3b3fa19318daf910f1f8de7376
MD5 c1384bbee7e5881808396659225317fa
BLAKE2b-256 fda84e3729f94c5ed8b64c23cbf6a67739dcb43c7b27151df07eee2b6a7dee80

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