Browse Source

clarify upstream usage and docs

tags/0.1.0^2
Bèr Kessels 3 months ago
parent
commit
f2d09cde27
1 changed files with 4 additions and 3 deletions
  1. 4
    3
      README.md

+ 4
- 3
README.md View File

@@ -9,11 +9,11 @@ templates and replaces variables with those you pass along.
```
Date: {{ date }}
Number: {{ number }}
Dear {{ name }}, this the invoice for 1 pizza. Please pay ฿{{ amount }}.
Dear {{ name | default(value="valued customer") }}, this the invoice for 1 pizza. Please pay ฿{{ amount }}.
```

```
$ blek invoice.j2 --var "name=John Doe" --var number=$(openssl rand -base64 6) --var amount=10,000
$ blek invoice.j2 --var amount=10,000 --var "name=John Doe" --var number=$(openssl rand -base64 6)
Date: 2021-01-29
Number: KqSYp872
Dear John Doe, this the invoice for 1 pizza. Please pay ฿10,000.
@@ -23,7 +23,8 @@ Dear John Doe, this the invoice for 1 pizza. Please pay ฿10,000.

* Simple, fast, small.
* Binary. Just download and run (or compile and distribute)
* Jinja2: a very simple, well documented templating language.
* Jinja2: A familiar (Liquid, Django, Twig), well documented templating language. We use
[Tera](https://tera.netlify.app/docs/#macros).
* Any file can be a template.
* Comes with ever growing set of basic variables (currently 2... 😋)
* Unix philosophy; very easy to automate or use in automation.

Loading…
Cancel
Save