Skip to main content

This recipe provides buildout with a generic way to fill in a template from buildout parameters. Lists and dictionaries are supported using JSON syntax.

Mandatory Parameters

input

Path to a template (in Cheetah format)

output

Where to write the template

Example

In your template:

${hello_world}
#for $bar in $foo
$bar
#end for

And in your buildout.cfg:

[buildout]
parts = template

[template]
recipe = isotoma.recipe.template
input = template.cfg
output = myfile.cfg
hello_world = Hello World
foo = ['foo', 'bar', 'baz']

Repository

This software is available from our recipe repository on github.

License

Copyright 2011 Isotoma Limited

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Release files for isotoma.recipe.template 0.0.5

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

Source distribution (sdist)

Source distribution for isotoma.recipe.template 0.0.5
File Size Uploaded
isotoma.recipe.template-0.0.5.tar.gz 3.1 kB Details

Release files / isotoma.recipe.template-0.0.5.tar.gz

Download URL isotoma.recipe.template-0.0.5.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
93e119571b195b948b5dbc22a758362623f4d9e04609648f3796dd1349e9d4da
BLAKE2b-256 checksum
How to use checksums
e446b988134f73308cb31775d27b2579e4cd94718d5de384505332143c334154
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.5 This release

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

0.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