chore: add exampe items
This commit is contained in:
parent
38a7885504
commit
75ccaef94e
3 changed files with 11 additions and 0 deletions
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…
Add table
Reference in a new issue