Command-line templates processor
Project description
Examples:
$ contpl --tpl infile.tpl --out file.out --delim '$$$' --test 30
Reads the infile.tpl template and rewrites its contents to infile.out,
substituting "$$$test"
$ contpl --tpl infile.tpl --out outdir --delim '%' --var1 20 --var2 hello
Reads the infile.tpl template and rewrites its contents to outdir/infile.tpl,
substituting "%var1" and "%var2"
$ contpl --tpl indir --out outdir --var1 10 --var2 50
Reads all the files from indir and rewrites them to outdir,
substituting "$$$var1" and "$$$var2" ("$$$" is the default delimiter)
$ contpl --tpl indir/\*.tpl --out outdir --var1 10 --var 20
Reads all the files matching the mask (glob) "*.tpl" and rewrites them to
outdir, substituting "$$$var1" and "$$$var2"
$ contpl --tpl infile.tpl --out file.out --delim '$$$' --test 30
Reads the infile.tpl template and rewrites its contents to infile.out,
substituting "$$$test"
$ contpl --tpl infile.tpl --out outdir --delim '%' --var1 20 --var2 hello
Reads the infile.tpl template and rewrites its contents to outdir/infile.tpl,
substituting "%var1" and "%var2"
$ contpl --tpl indir --out outdir --var1 10 --var2 50
Reads all the files from indir and rewrites them to outdir,
substituting "$$$var1" and "$$$var2" ("$$$" is the default delimiter)
$ contpl --tpl indir/\*.tpl --out outdir --var1 10 --var 20
Reads all the files matching the mask (glob) "*.tpl" and rewrites them to
outdir, substituting "$$$var1" and "$$$var2"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
contpl-1.0.tar.gz
(2.3 kB
view details)
File details
Details for the file contpl-1.0.tar.gz.
File metadata
- Download URL: contpl-1.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f4131a84dde9a596a543fe5a3452a66a4c44901ad3a64ae057d1fe7fec68840
|
|
| MD5 |
fa3b8dc233948f64d44c9af8efcfb83c
|
|
| BLAKE2b-256 |
7d8136558955252dfe5b7895ac9bac0f67975e0d96e3ccbf11fa638a7555b568
|