From 514cb71a6a3e116c229c5dc874369f8632530dc7 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Tue, 27 Apr 2021 11:23:17 +0200 Subject: Squashed 'deps/inja/' content from commit 811e173 git-subtree-dir: deps/inja git-subtree-split: 811e1730e13bca4ea1805a42d5f0a4b5c91046e1 --- test/data/html/data.json | 12 ++++++++++++ test/data/html/footer.txt | 6 ++++++ test/data/html/header.txt | 3 +++ test/data/html/result.txt | 26 ++++++++++++++++++++++++++ test/data/html/template.txt | 20 ++++++++++++++++++++ 5 files changed, 67 insertions(+) create mode 100644 test/data/html/data.json create mode 100644 test/data/html/footer.txt create mode 100644 test/data/html/header.txt create mode 100644 test/data/html/result.txt create mode 100644 test/data/html/template.txt (limited to 'test/data/html') diff --git a/test/data/html/data.json b/test/data/html/data.json new file mode 100644 index 0000000..c5726a5 --- /dev/null +++ b/test/data/html/data.json @@ -0,0 +1,12 @@ +{ + "author": "Pantor", + "date": "23/12/2018", + "tags": [ + "test", + "templates" + ], + "views": 123, + "title": "Inja works.", + "content": "Inja is the best and fastest template engine for C++. Period.", + "footer-text": "This is the footer." +} diff --git a/test/data/html/footer.txt b/test/data/html/footer.txt new file mode 100644 index 0000000..31d4bd3 --- /dev/null +++ b/test/data/html/footer.txt @@ -0,0 +1,6 @@ + \ No newline at end of file diff --git a/test/data/html/header.txt b/test/data/html/header.txt new file mode 100644 index 0000000..6b6d6ed --- /dev/null +++ b/test/data/html/header.txt @@ -0,0 +1,3 @@ + + {{ title }} + \ No newline at end of file diff --git a/test/data/html/result.txt b/test/data/html/result.txt new file mode 100644 index 0000000..0e23a41 --- /dev/null +++ b/test/data/html/result.txt @@ -0,0 +1,26 @@ + + + + Inja works. + + +

Inja works.

+ Written by Pantor + +

Inja is the best and fastest template engine for C++. Period.

+ 123 views + +
Tags
+ + + + + diff --git a/test/data/html/template.txt b/test/data/html/template.txt new file mode 100644 index 0000000..b471e74 --- /dev/null +++ b/test/data/html/template.txt @@ -0,0 +1,20 @@ + + + {% include "header.txt" %} + +

{{ title }}

+ Written by {{ author }} + +

{{ content }}

+ {{ views }} views + +
Tags
+ + + {% include "footer.txt" %} + + -- cgit v1.2.3