Skip to content

Commit 7138576

Browse files
authored
Merge pull request #35 from cjerdonek/v1.0.3+interpolation-no-reinterpolation
Add a test that interpolated content should not be re-interpolated
2 parents 6648085 + 6d518b7 commit 7138576

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

specs/interpolation.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ tests:
4141
expected: |
4242
Hello, world!
4343
44+
- name: No Re-interpolation
45+
desc: Interpolated tag output should not be re-interpolated.
46+
data: { template: '{{planet}}', planet: 'Earth' }
47+
template: '{{template}}: {{planet}}'
48+
expected: '{{planet}}: Earth'
49+
4450
- name: HTML Escaping
4551
desc: Basic interpolation should be HTML escaped.
4652
data: { forbidden: '& " < >' }

0 commit comments

Comments
 (0)