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.0.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for whiteprints_template_context-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b88c8a239ed698cadb44a0b11d42e63d4b34cd70b048de0e18079c554c47abb9
MD5 7b404c0cf4e38bc619f109a352106540
BLAKE2b-256 18d0867c41265ad3e7870aec329d2f0f5e78ad0f7adeb5d4ee935428c6e46495

See more details on using hashes here.

Provenance

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

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

Attestations:

File details

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

File metadata

File hashes

Hashes for whiteprints_template_context-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d6d44f024561c03adee011302126f00d73a86cc02e9b7f0b47618d76f139d742
MD5 50e58765117db3a50ccf0490fd4528b9
BLAKE2b-256 e2f61f645ac3e3af2cfcd53ccf839de00f70eb74eb099d86ccab25de38f28d33

See more details on using hashes here.

Provenance

The following attestation bundles were made for whiteprints_template_context-0.2.0-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