Jade
Jade is a markdown renderer for Flask applications.
Initialise a new Jade project after installing with python -m jade init. This will create a simple Flask site with a home page, and a small blog, as an example of how to use the framework.
To get started, try editing the content/home.md file.
At the top of this file, you will see some frontmatter. This is yaml formatted content that is passed to the builder, and the template.
While not required, the following frontmatter is recommended for each of your pages.
permalink- Where on the site you want the page to register. Defaults to the file's path within thecontentdirectory, without the file extension.template- the name of the template in yourtemplatesdirectory to render the content into. Defaults todefault.
Reserved names
-
page- You can access the page frontmatter in your templates through thepagevariable. For example, the title for this page would be accessed withpage.title. -
pages- Thepagesvariable contains all subdirectories of thecontentdirectory. This can be useful for things such as rendering a blog home page, with a link to each post in a directory. Note that nested directories are not currently supported. -
site- You can also access site parameters, such as the site name through thesitevariable in all of your templates. Any parameters that you need globally should be added to the.jade-config.yamlfile, under the site key. Try updating thenamekey undersitein the config file.
Contribution
Install development requirements with pip install -r requirements-dev.txt, then install pre-commit with pre-commit install. Ensure all nox tests are passing before creating a pull request.
Metadata
Release files for jade-md 0.0.4
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 |
|---|---|---|---|---|
| jade-md-0.0.4.tar.gz | 7.2 kB | Without provenance | Details for jade-md-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jade_md-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for jade_md-0.0.4-py3-none-any.whl |
Total release size: 16.2 kB
Release files / jade-md-0.0.4.tar.gz
| Download URL | jade-md-0.0.4.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
44675f467c8f0aaf4fe649e97b224a680f0a0a48c6d5b5fcff6a373726bf38b1
|
|
BLAKE2b-256 checksum How to use checksums |
53fd54e04a88ba21a465dca0a077cb9a9bb4f305f4219e7050c52dd43c287fbe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Release files / jade_md-0.0.4-py3-none-any.whl
| Download URL | jade_md-0.0.4-py3-none-any.whl |
|---|---|
| Size | 8.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e373fed7d7ebbde421eab6846403484e67eab498b586217128fea80d84c3c951
|
|
BLAKE2b-256 checksum How to use checksums |
c6b3a39c84097fa4b089bd285d0dc4f44a0e39b6429914ba3e5037c28de8187a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Security for jade-md 0.0.4
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.