Wrapper around Cheetah + JSON to provide simple buildout templating
Project description
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 2010 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
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.
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
Hashes for isotoma.recipe.template-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b920f8f1ceb4558569b3a11b62a9ca518f3ba456bc0c9de60da5cbb10cb6934 |
|
MD5 | 0fc43aa46c1ebc106c69d246c8ffa033 |
|
BLAKE2b-256 | c3ce36aedf015078e9e6fa94cfc47116950ba4f8ac94d32a163a2a5326f1b897 |