chore: add exampe items
This commit is contained in:
parent
38a7885504
commit
75ccaef94e
1
example/data.json
Normal file
1
example/data.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{ "name": "Akasha", "projects" : [ {"name": "TheProject", "status": "active" }] }
|
5
example/example.nu
Normal file
5
example/example.nu
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{ name: "Akasha", project: "Nushell" } | render template.tera
|
||||||
|
|
||||||
|
render template.tera context.json
|
||||||
|
|
||||||
|
open data.json | render template.tera
|
5
example/template.tera
Normal file
5
example/template.tera
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
Hello, {{ name }}!
|
||||||
|
Projects:
|
||||||
|
{% for project in projects -%}
|
||||||
|
- {{ project.name }} ({{ project.status }})
|
||||||
|
{% endfor %}
|
Loading…
x
Reference in New Issue
Block a user