mirror of
https://github.com/pantor/inja.git
synced 2026-03-14 05:01:25 +00:00
Inja v2 (#67)
* inja2 * header only * reduce dependencies * code cleaning * c++17 * use stdc++ * code cleaning * infrastructure * header only * add infrastructure * fix tests * use minimum clang 6 * code cleaning, polyfill for c++11 * fix some file tests * fix readme * update appveyor * fix polyfill and ci * fix polyfill * fix ci? * test msvc __cplusplus * add doxygen * activate all tests * code cleaning * add coveralls, set default to dot notation * add html test * add doxygen comments * test single_include file * change build folder in appveyor * correct make arguments in appveyor * fix appveyor arguments
This commit is contained in:
11
test/data/html/data.json
Normal file
11
test/data/html/data.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"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."
|
||||
}
|
||||
19
test/data/html/result.txt
Normal file
19
test/data/html/result.txt
Normal file
@@ -0,0 +1,19 @@
|
||||
<!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>
|
||||
</body>
|
||||
</html>
|
||||
20
test/data/html/template.txt
Normal file
20
test/data/html/template.txt
Normal file
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>{{ title }}</title>
|
||||
</head>
|
||||
<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>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user