Skip to main content

Small template engine that replaces variables via dictionary values:

cat file.txt
"This is a {{variable}} in a {{string}}"

from coima import Template
t = Template({'variable':'word', 'string':'sentence'}, 'file.txt')

t.render()

u"This is a word in a sentence"

Syntax

No Python or code blocks are allowed, this is basically a dumb templating engine.

Variables should be a one word or 2 words together with an underscore. These are valid variables:

{{variable}} {{variable_one}}

Invalid variables are left ‘as is’ and left in the final rendered template.

Metadata

Release files for coima 0.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 coima 0.0.2
File Size Uploaded
coima-0.0.2.tar.gz 6.1 kB Details

Release files / coima-0.0.2.tar.gz

Download URL coima-0.0.2.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
aae5fa1a5bd4ae07073779ea362851b6c1a703536b59b8ac0f75a9ed1f4e49ca
BLAKE2b-256 checksum
How to use checksums
6c2cb15baa38afb76d24fa3b370ac06046ed21e5e71139b2ffe81092d8c4e4f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file

0.0.1

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