This project has been archived by its maintainers, and is no longer receiving any updates.
jinja2html
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 artistic 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: __main__.py [-h] [-d] [-p port] [-i input_dir] [-o output_dir] [-t template_dir] [--debug] [--ignore ignored_dir [ignored_dir ...]]
Render jinja2 templates as html/css/js
optional arguments:
-h, --help show this help message and exit
-d enable development mode (live-reload)
-p port serve website on this port
-i input_dir The input directory (contianing jinja templates) to use. Defaults to the current working directory.
-o output_dir The output directory to write website output files to. Defaults to ./out
-t template_dir Shared templates directory (relative path only, this must be a subfolder of the input directory). Defaults to templates
--debug Enables debug level logging
--ignore ignored_dir [ignored_dir ...]
directories to ignore
Examples
# generate html files for use in prod
jinja2html
# run in dev mode, in the current directory
jinja2html -d
# generate html files for use in prod and ignore folders Foo/ and Bar/
jinja2html -d --ignore Foo/ Bar/
# run in dev mode, on port 8080 and ignore folder hello/world/
jinja2html -d -p 8080 --ignore hello/world/
See here for an example project
Scope
jinja2html is designed for small and simple static websites. If you're trying to do something big and complex, then you should stick with the tooling of a conventional front-end framework.
Metadata
Release files for jinja2html 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jinja2html-0.5.0.tar.gz | 22.9 kB | Without provenance | Details for jinja2html-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jinja2html-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for jinja2html-0.5.0-py3-none-any.whl |
Total release size: 46.5 kB
Release files / jinja2html-0.5.0.tar.gz
| Download URL | jinja2html-0.5.0.tar.gz |
|---|---|
| Size | 22.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9fd0a9a714433942c49ddace7905b01df684452591a4d3bd6cbab6c5a0c47366
|
|
BLAKE2b-256 checksum How to use checksums |
15c28522aa5479ffe9f33a866b334d3692bac716857486e245d3135f9dbd59c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|
Release files / jinja2html-0.5.0-py3-none-any.whl
| Download URL | jinja2html-0.5.0-py3-none-any.whl |
|---|---|
| Size | 23.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
931ad08c48905fd17427e40ca1c4fcc99f85bb586b8d871eaf1fd3e7efecacea
|
|
BLAKE2b-256 checksum How to use checksums |
eec397c66798734fe6b245d755d252a3f1f73f17c4f903c3f6415ede76588aec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|
Security for jinja2html 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.