Skip to main content

Interpolate variables and set Copier Jinja context

Project description

Whiteprints template context

Whiteprints template context banner

Interpolate variables and set Copier Jinja context

PyPI - Python Version PyPI - Project Version license badge GitHub Discussions SPDX Licensing contributor covenant badge codecov badge

Table of contents

Background

This package is an internal dependencies of Whiteprints template. It uses Jinja2 extentions to prepare Copier. It also defines useful Jinja filters.

Usage

To activate the template just add the following to copier.yml:

_jinja_extensions:
  - whiteprints_template_context.context.ContextUpdater
  - whiteprints_template_context.filters.WhiteprintsFilters

This will enhance copier's context with additional variables and filters that are required by Whiteprints templates.

Install

See INSTALL.md.

Maintainers

See MAINTAINERS.md.

Contributing

See CONTRIBUTING.md.

Licensing

The Python code of this project is distributed under license MIT.

In case of doubt, please check the SPDX header of each individual source code file.

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

whiteprints_template_context-0.2.1.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file whiteprints_template_context-0.2.1.tar.gz.

File metadata

File hashes

Hashes for whiteprints_template_context-0.2.1.tar.gz
Algorithm Hash digest
SHA256 96db586dc0e6f2b1b96ba9765d1f8f402f6f1d6011d5711d54158cb7227237c3
MD5 fc06805e57af6e5bb3887cdc8fb99794
BLAKE2b-256 ef4d63820d6d45253d4513382481176b7b0339ac3c124bb619e15d69bda86fbc

See more details on using hashes here.

Provenance

The following attestation bundles were made for whiteprints_template_context-0.2.1.tar.gz:

Publisher: publish_pypi.yml on whiteprints/whiteprints-template-context

Attestations:

File details

Details for the file whiteprints_template_context-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for whiteprints_template_context-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e0bf18e5fc78ee3be27321e60a35b8892d9c9ccbe1073b67e8ba18157b8c5343
MD5 0bdca7474cf08b7e8776fc2117831afc
BLAKE2b-256 c82bdecdbbe649ba007d9735c7b90f664b46dea7e3d0618f40bb5ffc634c798e

See more details on using hashes here.

Provenance

The following attestation bundles were made for whiteprints_template_context-0.2.1-py3-none-any.whl:

Publisher: publish_pypi.yml on whiteprints/whiteprints-template-context

Attestations:

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