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

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for whiteprints_template_context-0.3.0.tar.gz
Algorithm Hash digest
SHA256 e67c3e3d8496b628f838fc1f4a6d34c35a785e442485a1420c6216ffd19e762e
MD5 a50fc77ece2c0a3066fa173f25d8b6a2
BLAKE2b-256 56fb8498508eb141fd664aa11240b069103014ed9fbceac7205aca18519f06d1

See more details on using hashes here.

Provenance

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

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

Attestations:

File details

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

File metadata

File hashes

Hashes for whiteprints_template_context-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d0a444d75ea967b93942c4f83d9441f30fa53e29364e2c96f31fb32b754a0a83
MD5 45082454bfb04b150ca71b2b7627dcb4
BLAKE2b-256 d376eab34cd69c409417928a6b93ec5432232ea05ac581693cd4e4730c91d6e8

See more details on using hashes here.

Provenance

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