Skip to main content

Jade - A Python library for rendering markdown to HTML for Flask.

Project description

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 the content directory, without the file extension.
  • template - the name of the template in your templates directory to render the content into. Defaults to default.

Reserved names

  • page - You can access the page frontmatter in your templates through the page variable. For example, the title for this page would be accessed with page.title.

  • pages - The pages variable contains all subdirectories of the content directory. 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 the site variable in all of your templates. Any parameters that you need globally should be added to the .jade-config.yaml file, under the site key. Try updating the name key under site in 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.

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

jade-md-0.0.3.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

jade_md-0.0.3-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file jade-md-0.0.3.tar.gz.

File metadata

  • Download URL: jade-md-0.0.3.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for jade-md-0.0.3.tar.gz
Algorithm Hash digest
SHA256 2d91be49a6c0b6697b21f3a7b42cf63d57f19f72dd478ab1abcdc48cf3fb99f0
MD5 db69a4aac2a296a148e3ab82e5a67688
BLAKE2b-256 06ba9573b620c8cd838e5281d43f5d32318df5933dae15504f457dd81baec420

See more details on using hashes here.

File details

Details for the file jade_md-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: jade_md-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for jade_md-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4a18079b19814ae3c8d75ba9dca2494275e7aafe930246fe3ecdb1d9c58d9b31
MD5 f221258edc716307f144a91079bc6523
BLAKE2b-256 d6f2fa44de62f0abd68dc115d34aa03ab4fa2d75d9b739521e6ccadbb859e09b

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