diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2021-04-27 11:23:17 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2021-04-27 11:23:17 +0200 |
commit | 36cc18d2b6d0eefd00a25a02bb4a407e700b5f9f (patch) | |
tree | 575b98e789934a2153a9063d1b91afb42dc27ef4 /deps/inja/test/data/html | |
parent | dd086a1608b0e3cd5565174225b8197792bad4b9 (diff) | |
parent | 514cb71a6a3e116c229c5dc874369f8632530dc7 (diff) |
Merge commit '514cb71a6a3e116c229c5dc874369f8632530dc7' as 'deps/inja'
Diffstat (limited to 'deps/inja/test/data/html')
-rw-r--r-- | deps/inja/test/data/html/data.json | 12 | ||||
-rw-r--r-- | deps/inja/test/data/html/footer.txt | 6 | ||||
-rw-r--r-- | deps/inja/test/data/html/header.txt | 3 | ||||
-rw-r--r-- | deps/inja/test/data/html/result.txt | 26 | ||||
-rw-r--r-- | deps/inja/test/data/html/template.txt | 20 |
5 files changed, 67 insertions, 0 deletions
diff --git a/deps/inja/test/data/html/data.json b/deps/inja/test/data/html/data.json new file mode 100644 index 0000000..c5726a5 --- /dev/null +++ b/deps/inja/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/deps/inja/test/data/html/footer.txt b/deps/inja/test/data/html/footer.txt new file mode 100644 index 0000000..31d4bd3 --- /dev/null +++ b/deps/inja/test/data/html/footer.txt @@ -0,0 +1,6 @@ +<footer> + <div> + <h3>About</h3> + <p>{{ footer-text }}</p> + </div> + </footer>
\ No newline at end of file diff --git a/deps/inja/test/data/html/header.txt b/deps/inja/test/data/html/header.txt new file mode 100644 index 0000000..6b6d6ed --- /dev/null +++ b/deps/inja/test/data/html/header.txt @@ -0,0 +1,3 @@ +<head> + <title>{{ title }}</title> + </head>
\ No newline at end of file diff --git a/deps/inja/test/data/html/result.txt b/deps/inja/test/data/html/result.txt new file mode 100644 index 0000000..0e23a41 --- /dev/null +++ b/deps/inja/test/data/html/result.txt @@ -0,0 +1,26 @@ +<!DOCTYPE html> +<html> + <head> + <title>Inja works.</title> + </head> + <body> + <h1>Inja works.</h1> + <small>Written by Pantor</small> + + <p>Inja is the best and fastest template engine for C++. Period.</p> + <small>123 views</small> + + <h5>Tags</h5> + <ul> + <li>test</li> + <li>templates</li> + </ul> + + <footer> + <div> + <h3>About</h3> + <p>This is the footer.</p> + </div> + </footer> + </body> +</html> diff --git a/deps/inja/test/data/html/template.txt b/deps/inja/test/data/html/template.txt new file mode 100644 index 0000000..b471e74 --- /dev/null +++ b/deps/inja/test/data/html/template.txt @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html> + {% include "header.txt" %} + <body> + <h1>{{ title }}</h1> + <small>Written by {{ author }}</small> + + <p>{{ content }}</p> + <small>{{ views }} views</small> + + <h5>Tags</h5> + <ul> +## for tag in tags + <li>{{ tag }}</li> +## endfor + </ul> + + {% include "footer.txt" %} + </body> +</html> |