* 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:
pantor
2018-12-23 16:13:15 +01:00
committed by GitHub
parent d90f93fda0
commit 699c207c8c
77 changed files with 7420 additions and 3522 deletions

11
test/data/html/data.json Normal file
View 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
View 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>

View 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>