contpl-1.0
توضیحات
Command-line templates processor
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | contpl-1.0 |
| نام | contpl |
| نسخه کتابخانه | 1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | OVK |
| ایمیل نویسنده | me@ovk.name |
| آدرس صفحه اصلی | https://github.com/ovkn/contpl |
| آدرس اینترنتی | https://pypi.org/project/contpl/ |
| مجوز | UNKNOWN |
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"
نحوه نصب
نصب پکیج whl contpl-1.0:
pip install contpl-1.0.whl
نصب پکیج tar.gz contpl-1.0:
pip install contpl-1.0.tar.gz