Skip to main content

This provides a silly way to create HTML templates based on Jinja2 ones without a framework.

This aims to be stupidly simple - in order to be used to whom have never heard about python before.

The least you should do to work with this is learn a bit of Jinja2. Do it now, you won’t regret. =)

This is:

  • a way to use Jinja2 outside python frameworks.

  • a way to use Jinja2 not knowing anything in python.

This is not:

  • another templating language for python. Jinja2 is good enough. =)

Installation:

pip install jinja2-standalone-compiler

Usage:

jinja2_standalone_compiler <path-to-jinja-files>  # Note that jinja files will be searched recursively

For a more intense usage, you can also use a settings file to define a bunch of things. To use settings file:

jinja2_standalone_compiler <path-to-jinja-files> --settings=path/to/settings.py

Please note that settings file is a Python file, so Python syntax applies. =P

In order to see what can be done with this settings file, please refer to this example

Contribute

Did you think in some interesting feature, or have you found a bug? Please let me know!

Of course you can also download the project and send me some pull requests.

You can send your suggestions by opening issues.

You can contact me directly as well. Take a look at my contact information at http://filwaitman.github.io/ (email is preferred rather than mobile phone).

Release files for jinja2_standalone_compiler 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jinja2_standalone_compiler 1.1.0
File Size Uploaded
jinja2_standalone_compiler-1.1.0.tar.gz 4.2 kB Details

Release files / jinja2_standalone_compiler-1.1.0.tar.gz

Download URL jinja2_standalone_compiler-1.1.0.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
35b388401cad366d0f79a9dcf3a786551d9fd50cf8d9c8c9af16c5f69290c0e8
BLAKE2b-256 checksum
How to use checksums
2db5064eb934628d9e9a93ca19285541ac86bbe4c92eb341f0ba0148d102a6d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

1.3.1

1 release file

1.3.0

1 release file

1.2.0

1 release file

1.1.1

1 release file

This release

1.1.0 This release

1 release file

1.0.3

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page