chore: add data.json
This commit is contained in:
parent
75ccaef94e
commit
e0e144478b
1 changed files with 15 additions and 1 deletions
16
README.md
16
README.md
|
|
@ -38,7 +38,21 @@ Parameters:
|
||||||
|
|
||||||
Render **template.tera** with a record as context from the pipeline.
|
Render **template.tera** with a record as context from the pipeline.
|
||||||
|
|
||||||
template.tera:
|
|
||||||
|
**data.json**
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"name": "Akasha",
|
||||||
|
"projects": [
|
||||||
|
{
|
||||||
|
"name": "TheProject",
|
||||||
|
"status": "active"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
**template.tera***
|
||||||
```jinja
|
```jinja
|
||||||
Hello, {{ name }}!Projects:
|
Hello, {{ name }}!Projects:
|
||||||
{% for project in projects -%}
|
{% for project in projects -%}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue