chore: add data.json
This commit is contained in:
parent
75ccaef94e
commit
e0e144478b
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…
x
Reference in New Issue
Block a user