Pre-release
This release is a pre-release and may not be stable for production use.
Textfile Recipe
This is a very simple recipe which generates a textfile from a template.
The template can be everything, and may contain python-style string formatters. The values will be replaced with the options you set inside the buildout.cfg section.
Example
An example buildout.cfg:
[buildout]
parts=test.txt
template-dir=${buildout:directory}/templates
[test.txt]
recipe=inquant.recipe.mktemplate
template=${buildout:template-dir}/test.txt.in
output=${buildout:directory}/test.txt
avalue=foo
anothervalue=bar
An example text template:
This is just a test template=%(template)s output=%(output)s This is just text %(avalue)s and %(anothervalue)s got replaced. See?
The recipe will read the template and replace the strings yielding something like:
This is just a test template=/Users/seletz/develop/plone/buildout/templates/test.txt.in output=/Users/seletz/develop/plone/buildout/test.txt This is just text foo and bar got replaced. See?
vim: set ft=rst ts=2 sw=2 expandtab:
Release files for inquant.recipe.textfile 0.1dev-r1954
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| inquant.recipe.textfile-0.1dev-r1954.tar.gz | 12.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| inquant.recipe.textfile-0.1dev_r1954-py2.4.egg | Legacy Egg format | - | - | Details |
Total release size: 18.1 kB
Release files / inquant.recipe.textfile-0.1dev-r1954.tar.gz
| Download URL | inquant.recipe.textfile-0.1dev-r1954.tar.gz |
|---|---|
| Size | 12.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9a4216e6c808f788e530b9b9a7cc8a31928f43bc6a5343b063a0f8ff36027765
|
|
BLAKE2b-256 checksum How to use checksums |
c066d53d8106610e87d2b13acdff58929921dd0e07a89fa1e31415c4c8c0f499
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / inquant.recipe.textfile-0.1dev_r1954-py2.4.egg
| Download URL | inquant.recipe.textfile-0.1dev_r1954-py2.4.egg |
|---|---|
| Size | 5.3 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
13a59c02ec8d9a3218af96b90b862168cf0685028d12f5ce98396f0c313f8106
|
|
BLAKE2b-256 checksum How to use checksums |
5364963ba5625386468334a5a68199737a923ce54b662ac8b1277062a235c1be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |