diff --git a/demo/indented-partial b/demo/indented-partial new file mode 100755 index 0000000..78073f3 --- /dev/null +++ b/demo/indented-partial @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +export data=$'line 1\nline 2' + +cat < partial}} + +And here's the same partial with a 4-space indent: + + {{> partial}} + +:-) +EOF diff --git a/demo/partial b/demo/partial new file mode 100644 index 0000000..367d1bb --- /dev/null +++ b/demo/partial @@ -0,0 +1 @@ +{{data}} diff --git a/tests/multi-line-partial.env b/tests/multi-line-partial.env new file mode 100644 index 0000000..3a1b584 --- /dev/null +++ b/tests/multi-line-partial.env @@ -0,0 +1 @@ +multilineData=$'line 1\nline2' diff --git a/tests/multi-line-partial.expected b/tests/multi-line-partial.expected new file mode 100644 index 0000000..bb6b84b --- /dev/null +++ b/tests/multi-line-partial.expected @@ -0,0 +1,9 @@ +Partial: + +line 1 +line 2 + +Indented: + + line 1 + line 2 diff --git a/tests/multi-line-partial.partial b/tests/multi-line-partial.partial new file mode 100644 index 0000000..da32746 --- /dev/null +++ b/tests/multi-line-partial.partial @@ -0,0 +1 @@ +{{multilineData}} diff --git a/tests/multi-line-partial.template b/tests/multi-line-partial.template new file mode 100644 index 0000000..1fad7a6 --- /dev/null +++ b/tests/multi-line-partial.template @@ -0,0 +1,7 @@ +Partial: + +{{> multi-line-partial.partial}} + +Indented: + + {{> multi-line-partial.partial}}