Commit 5a8e706
committed
Docs: Fix conditional syntax examples to use {{if}} not {{#if}}
The README and just-the-docs site examples both used {{#if condition}}
syntax (Mustache-with-hash). The actual TokenParser implementation
dispatches on span.StartsWith("if", ...) — no '#' handling — and all
existing unit tests use {{if ...}}. Documentation drifted from the
implementation.
Affected lines:
- README.md:89 and :104 — both code blocks demonstrating conditionals
- docs/site/syntax/examples.md:65 and :82 — corresponding examples
No code changes; tests already prove the {{if}} form works.1 parent e442d91 commit 5a8e706
2 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
0 commit comments