Parse self-references and add a test for sections.

This commit is contained in:
Tom Alexander
2020-04-28 19:02:43 -04:00
parent 71181fbd9a
commit 41ad6179d1
14 changed files with 26 additions and 1 deletions

View File

@@ -0,0 +1 @@
{"names": ["Alice", "Bob", "Chris"]}

View File

@@ -0,0 +1,3 @@
{#names}
Hello {.}!
{/names}

View File

@@ -0,0 +1 @@
{"things": ["Alice", "Bob", "Chris"]}

View File

@@ -0,0 +1 @@
{"things": {}}

View File

@@ -0,0 +1 @@
{"things": {"name": "Alice", "keyboard": "K-Type"}}

View File

@@ -0,0 +1 @@
{"there_are_no_things": 4}

View File

@@ -0,0 +1 @@
{"things": "just a string"}

View File

@@ -0,0 +1 @@
{"things": false}

View File

@@ -0,0 +1 @@
{"things": null}

View File

@@ -0,0 +1 @@
{"things": 0}

View File

@@ -0,0 +1 @@
{"things": ""}

View File

@@ -0,0 +1 @@
{"things": []}

View File

@@ -0,0 +1,5 @@
{#things}
Thing: {.}
{:else}
No things
{/things}