Skip to main content

Extremely plain and simple template engine for text files

Project description

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')


u"This is a word in a sentence"


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.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for coima, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size coima-0.0.2.tar.gz (6.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page