chore: add exampe items

This commit is contained in:
Jesús Pérex 2025-06-26 23:21:16 +01:00
parent 38a7885504
commit 75ccaef94e
3 changed files with 11 additions and 0 deletions

1
example/data.json Normal file
View File

@ -0,0 +1 @@
{ "name": "Akasha", "projects" : [ {"name": "TheProject", "status": "active" }] }

5
example/example.nu Normal file
View 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
View File

@ -0,0 +1,5 @@
Hello, {{ name }}!
Projects:
{% for project in projects -%}
- {{ project.name }} ({{ project.status }})
{% endfor %}