Skip to main content

UNKNOWN

Project description

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).

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

jinja2_standalone_compiler-1.1.0.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file jinja2_standalone_compiler-1.1.0.tar.gz.

File metadata

File hashes

Hashes for jinja2_standalone_compiler-1.1.0.tar.gz
Algorithm Hash digest
SHA256 35b388401cad366d0f79a9dcf3a786551d9fd50cf8d9c8c9af16c5f69290c0e8
MD5 1ace6dade5559cb69af27253c22d7ba4
BLAKE2b-256 2db5064eb934628d9e9a93ca19285541ac86bbe4c92eb341f0ba0148d102a6d3

See more details on using hashes here.

Supported by

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