From fdb298d6a22dbab32d5da6c653b600d1b8f93143 Mon Sep 17 00:00:00 2001 From: Jasper Van der Jeugt Date: Thu, 4 Aug 2016 14:13:24 +0200 Subject: Fix partials and add a test Fixes #460 --- tests/data/partial-helper.html | 3 +++ tests/data/partial.html | 3 +++ tests/data/partial.html.out | 7 +++++++ 3 files changed, 13 insertions(+) create mode 100644 tests/data/partial-helper.html create mode 100644 tests/data/partial.html create mode 100644 tests/data/partial.html.out (limited to 'tests/data') diff --git a/tests/data/partial-helper.html b/tests/data/partial-helper.html new file mode 100644 index 0000000..15c86ba --- /dev/null +++ b/tests/data/partial-helper.html @@ -0,0 +1,3 @@ +

This is an included partial.

+ +$body$ diff --git a/tests/data/partial.html b/tests/data/partial.html new file mode 100644 index 0000000..b4d81bb --- /dev/null +++ b/tests/data/partial.html @@ -0,0 +1,3 @@ +

This is a file that includes a partial.

+ +$partial("partial-helper.html")$ diff --git a/tests/data/partial.html.out b/tests/data/partial.html.out new file mode 100644 index 0000000..19f7ed7 --- /dev/null +++ b/tests/data/partial.html.out @@ -0,0 +1,7 @@ +

This is a file that includes a partial.

+ +

This is an included partial.

+ +This is an example. + + -- cgit v1.2.3