Metadata-Version: 2.1
Name: tiny-render
Version: 0.1.2
Summary: A simple wrapper of Jinja2 to render text based file, eg. SQL code and YAML files
Author: Zhong Dai
Author-email: zhongdai.au@gmail.com
Requires-Python: >=3.6
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: Jinja2 (>=2.11.3,<3.0.0)
Description-Content-Type: text/markdown

# Tiny Render

This is a very simple wrapper for `Jinja2` by providing few built-in variables.

Variables,

- `{{ _gitsha }}` - will be the shortsha for `git` hash, the value will be `None` if `git` is not
installed or the current directory is not a git repo.
- `{{ 'HOME' | getenv }}` - the environment variable `HOME` will be renderred. It will raise exception
if `HOME` is not set
- `{{ _date_str }}` - the current date in `yyyymmdd` format
- `{{ _time_str }}` - the current date/time in `yyyymmddHHMMSS` format
