Simplate template rensder usesd jinja2
Project description
pyrender
jinja2を使った簡単なテンプレートレンダー パッケージングの練習に利用
使い方
# pyrender --vars vars.yml template.j2
上記のように実行すると、Jinja2の形式で書かれたtempalte.j2
を
vars.yml
の変数を用いてレンダリングします。
結果は標準出力に出力されます。
ファイル出力する機能はそのうち追加予定。
開発
Require
- python3 (venvを利用)
- docker (rpmパッケージのビルドに利用)
テスト
$ make test
make lint
でflake8
を走らせることもできる
ビルド
$ make build
wheelパッケージ、tar.gzアーカイブ, zipアーカイブの3つがdist
ディレクトリ内に作成される。
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.0.0.tar.gz
(3.0 kB
view hashes)