Skip to main content

charms.templating.jinja2 badge

Helper for rendering Jinja2 templates with charms

Usage

from charms.templating.jinja2 import render

render('app.conf.j2', '/etc/app.conf', {
    'my_var': 'my_val',
})

output = render(
    'tmpl.j2',
    tests={
        'isnumeric': lambda s: s.isnumeric(),
    })

output = render(
    template='{{ config["my-opt"]|my_upper }}',
    filters={
        'my_upper': lambda s: s.upper(),
    })

The full documentation is available at http://pythonhosted.org/charms.templating.jinja2/

Release files for charms.templating.jinja2 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for charms.templating.jinja2 1.0.2
File Size Uploaded
charms.templating.jinja2-1.0.2.tar.gz 4.2 kB Details

Release files / charms.templating.jinja2-1.0.2.tar.gz

Download URL charms.templating.jinja2-1.0.2.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8193c6a1d40bdb66fe272c359b4e4780501c658acfaf2b1118c4230927815fe2
BLAKE2b-256 checksum
How to use checksums
6a797e2beeb4d5659134fca37a7e7ad4cad6aa10e9f4eb63106c74e4abf899c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.2 This release

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page