Simplate template rensder usesd jinja2
Project description
pyrender
jinja2を使った簡単なテンプレートレンダー パッケージングの練習に利用
使い方
# renderj2 --vars vars.yml template.j2
上記のように実行すると、Jinja2の形式で書かれたtempalte.j2
を
vars.yml
の変数を用いてレンダリングします。
結果は標準出力に出力されます。
ファイル出力する機能はそのうち追加予定。
開発
Require
- python3
- Poetry
テスト
$ poetry poe test
ビルド
$ poetry build
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
renderj2-1.2.1b2.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for renderj2-1.2.1b2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b21a7e4ebc961e99b3c133f5714188dfc41dd46b8c138ecabc30839364e02f8 |
|
MD5 | bb262975092246a3c015efe0e4ad7ade |
|
BLAKE2b-256 | 3937f125cca5281e8eddab3781afadb497d528d240302465e1b329fc1f2004bc |