Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6365e34

Browse files
committed
Update docs
1 parent03145f4 commit6365e34

File tree

7 files changed

+86
-43
lines changed

7 files changed

+86
-43
lines changed

‎.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
_site
2+
.sass-cache
3+
.jekyll-cache
4+
.jekyll-metadata
5+
vendor

‎_config.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,31 @@ plugins:
44

55
# theme: jekyll-theme-slate
66
remote_theme:pmarsceill/just-the-docs
7+
#theme: just-the-docs
78

89
aux_links:
910
"Jinja2C++ on GitHub":
1011
-"https://github.com/jinja2cpp/Jinja2Cpp"
1112

1213
title:"Jinja2C++ project"
14+
baseurl:""# the subpath of your site, e.g. /blog
15+
url:""# the base hostname & protocol for your site, e.g. http://example.com
1316
show_downloads:true
17+
color_scheme:dark
18+
19+
heading_anchor:true
20+
21+
# Footer last edited timestamp
22+
last_edit_timestamp:true# show or hide edit time - page must have `last_modified_date` defined in the frontmatter
23+
last_edit_time_format:"%b %e %Y at %I:%M %p"# uses ruby's time format: https://ruby-doc.org/stdlib-2.7.0/libdoc/time/rdoc/Time.html
24+
25+
# Footer "Edit this page on GitHub" link text
26+
gh_edit_link:true# show or hide edit this page link
27+
gh_edit_link_text:"Edit this page on GitHub."
28+
gh_edit_repository:"https://github.com/jinja2cpp/jinja2cpp.github.io"# the github URL for your repo
29+
gh_edit_branch:"master"# the branch that your docs is served from
30+
# gh_edit_source: docs # the source that your files originate from
31+
gh_edit_view_mode:"tree"# "tree" or "edit" if you want the user to jump into the editor immediately
1432
# github:
1533
# repository_url: https://github.com/flexferrum/Jinja2Cpp
1634
# zip_url: https://github.com/flexferrum/Jinja2Cpp/archive/0.9.1.zip

‎_includes/footer_custom.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{%- if site.footer_content -%}
2+
<pclass="text-small text-grey-dk-100 mb-0">{{ site.footer_content }}</p>
3+
{%- endif -%}
4+
<pclass="text-small text-grey-dk-100 mb-0">Jinja2C++ is &copy; 2018-{{ "now" | date: "%Y" }} by<ahref="https://github.com/flexferrum">Flex Ferrum</a> and<ahref="https://github.com/rmorozov">Ruslan Morozov</a>.
5+
<br>Jinja2C++ is distributed by a<ahref="https://github.com/jinja2cpp/Jinja2Cpp/blob/master/LICENSE">Mozilla Public License 2.0</a></p>

‎docs/build_and_install.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ nav_order: 4
1515

1616
##Supported compilers
1717
Compilation of Jinja2C++ tested on the following compilers (with C++14 enabled feature):
18-
- Linux gcc 5.0 -9
19-
- Linux clang 3.8 -10
20-
- MacOS X-Code 9 -11
21-
- Microsoft Visual Studio 2015-2019 x86, x64
18+
- Linux gcc 5.0 -11.2
19+
- Linux clang 3.8 -13.0.0
20+
- MacOS X-Code 9 -13
21+
- Microsoft Visual Studio 2015-2022 x86, x64
2222
- MinGW 7, 8
2323

2424
##Dependencies
2525
Jinja2C++ has several external dependencies:
26-
-`boost` library (at least version 1.65)
26+
-`boost` library (at least version 1.65)
2727
-`nonstd::expected-lite`[https://github.com/martinmoene/expected-lite](https://github.com/martinmoene/expected-lite)
2828
-`nonstd::variant-lite`[https://github.com/martinmoene/variant-lite](https://github.com/martinmoene/variant-lite)
2929
-`nonstd::optional-lite`[https://github.com/martinmoene/optional-lite](https://github.com/martinmoene/optional-lite)
@@ -59,35 +59,35 @@ In simplest case, if you don't want to understand Jinja2C++ build script interna
5959
"Path to install folder" here is a path to the folder where you want to install Jinja2Cpp lib.`DJINJA2CPP_DEPS_MODE` define with`internal` value creates the build script which will take external dependencies from the submodules.
6060
5. Build library:
6161
```
62-
> cmake --build .
62+
> cmake --build .
6363
```
6464
6. Install library (if necessary):
6565
```
66-
> cmake --build .
66+
> cmake --build .
6767
```
6868

6969
###Use with conan.io dependency manager
7070
Jinja2C++ can be used as conan.io package. In this case you should do the following steps:
7171

7272
1. Install conan.io according to the documentation (https://docs.conan.io/en/latest/installation.html )
73-
2. Add reference to Jinja2C++ package (`jinja2cpp/1.1.0`) to your conanfile.txt, conanfile.py or CMakeLists.txt. For instance, with usage of`conan-cmake` integration it could be written this way:
73+
2. Add reference to Jinja2C++ package (`jinja2cpp/1.2.1`) to your conanfile.txt, conanfile.py or CMakeLists.txt. For instance, with usage of`conan-cmake` integration it could be written this way:
7474

7575
```cmake
7676
include (../../cmake/conan.cmake)
7777
if (NOT MSVC)
7878
set (CONAN_SETTINGS SETTINGS compiler.libcxx=libstdc++11)
7979
endif ()
8080
81-
conan_cmake_run(REQUIRES
81+
conan_cmake_run(REQUIRES
8282
jinja2cpp/1.1.0
8383
gtest/1.7.0@bincrafters/stable
8484
BASIC_SETUP
8585
${CONAN_SETTINGS}
86-
OPTIONS
86+
OPTIONS
8787
jinja2cpp:shared=False
8888
gtest:shared=False
8989
BUILD missing)
90-
90+
9191
set (TARGET_NAME jinja2cpp_build_test)
9292
9393
add_executable (${TARGET_NAME} main.cpp)
@@ -178,7 +178,7 @@ cmake .. -DCMAKE_BUILD_TYPE=Release -Djinja2cpp_DIR=../.jinja2cpp-install/lib/ji
178178
```cmake
179179
cmake_minimum_required (VERSION 3.0.0 FATAL_ERROR)
180180
project (Jinja2CppBuildTest CXX)
181-
181+
182182
set (TARGET_NAME jinja2cpp_build_test)
183183
set (CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/.jinja2cpp-install)
184184

‎docs/download.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@ nav_order: 5
1313
1. TOC
1414
{:toc}
1515

16+
##Version 1.2.1
17+
18+
###Changes and improvements
19+
- bump deps versions
20+
- support modern compilers(up to Clang 12) and standards(C++20)
21+
- tiny code style cleanup
22+
23+
###Fixed bugs
24+
- small fixes across code base
25+
26+
###Breaking changes
27+
- internal deps point to make based boost build
1628

1729
##Version 1.1.0
1830
###Changes and improvements

‎docs/getting_started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ description: "How to quickly start using Jinja2C++"
1010
##How to get Jinja2++
1111

1212
Get the latest Conan.io package:[
13-
jinja2cpp/1.1.0](https://bintray.com/conan/conan-center/jinja2cpp%3A_/1.1.0%3A_)
13+
jinja2cpp/1.2.1](https://conan.io/center/jinja2cpp)
1414

15-
Or download the latest release:[Release 1.1.0](https://github.com/jinja2cpp/Jinja2Cpp/releases/latest)
15+
Or download the latest release:[Release 1.2.1](https://github.com/jinja2cpp/Jinja2Cpp/releases/latest)
1616

1717
Or:
1818
- Clone the Jinja2C++[repository](https://github.com/jinja2cpp/Jinja2Cpp)

‎index.md

Lines changed: 32 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -8,44 +8,53 @@ permalink: /
88

99
<divalign="center"><imgwidth="200"src="https://avatars0.githubusercontent.com/u/49841676?s=200&v=4"></div>
1010

11+
---
12+
1113
#Bring the powerful text template engine to your C++ project!
1214
{: .no_toc }
15+
{: .fs-9 }
1316

14-
{: .fs-6 }
15-
Jinja2C++ is a modern C++ implementation of the[Python Jinja2 template engine](http://jinja.pocoo.org/docs/2.10/). Originally, itwas inspired by[Jinja2CppLight](https://github.com/hughperkins/Jinja2CppLight) library and now Jinja2C++ brings support for mostly all Jinja2 templates engine features into C++ world.
17+
[Jinja2C++](https://github.com/jinja2cpp/Jinja2Cpp) is a modern C++ implementation of the Python's[Jinja2](https://jinja.palletsprojects.com/en/3.0.x/) template engine.
18+
This projectwas inspired by[Jinja2CppLight](https://github.com/hughperkins/Jinja2CppLight) library.
1619
{: .fs-6 .fw-300 }
1720

21+
---
22+
1823
##Main features of Jinja2C++:
1924
{: .no_toc }
2025

21-
- C++14/17 library
22-
- Supports mainstream compilers (Visual C++, gcc, clang)
23-
- Easy-to-use interface/Great UI.
24-
- Conformance to[Jinja2 specification](http://jinja.pocoo.org/docs/2.10/)
25-
- Partial support for both narrow- and wide-character strings both for templates and parameters.
26-
- Built-in reflection for C++ types and popular json libraries ([nlohmann](https://github.com/nlohmann/json) and[rapid](https://github.com/Tencent/rapidjson)).
27-
- Powerful full-featured Jinja2 expressions with filtering (via '\|' operator) and 'if'-expressions.
28-
- Control flow statements ('set', 'filter', 'for', 'if', 'do', 'with').
29-
- Templates extension ('extends', 'block').
30-
- Templates reuse ('include', 'import', 'from').
31-
- Macros ('macro', 'call').
32-
- Rich error reporting.
26+
-Library supportsC++14/17/20;
27+
- Supports mainstream compilers (Visual C++, gcc, clang);
28+
- Easy-to-use interface/Great UI;
29+
- Conformance to[Jinja2 specification](http://jinja.pocoo.org/docs/2.10/);
30+
- Partial support for both narrow- and wide-character strings both for templates and parameters;
31+
- Built-in reflection for C++ types and popular json libraries ([nlohmann](https://github.com/nlohmann/json) and[rapid](https://github.com/Tencent/rapidjson));
32+
- Powerful full-featured Jinja2 expressions with filtering (via '\|' operator) and 'if'-expressions;
33+
- Control flow statements ('set', 'filter', 'for', 'if', 'do', 'with');
34+
- Templates extension ('extends', 'block');
35+
- Templates reuse ('include', 'import', 'from');
36+
- Macros ('macro', 'call');
37+
- Rich error reporting;
3338
- Shared template enironment with templates cache support.
3439

3540
[View it on GitHub](https://github.com/jinja2cpp/Jinja2Cpp){: .btn .btn-primary .fs-5 .mb-4 .mb-md-0 .mr-2 }[View it on Conan](https://bintray.com/conan/conan-center/jinja2cpp%3A_){: .btn .fs-5 .mb-4 .mb-md-0 }
3641

42+
---
43+
3744
##How to get Jinja2C++
3845
{: .no_toc }
3946

4047
The simplest way: to get the latest conan.io package:[
41-
jinja2cpp/1.1.0](https://bintray.com/conan/conan-center/jinja2cpp%3A_)
48+
jinja2cpp/1.2.1](https://conan.io/center/jinja2cpp)
4249

4350
Or follow the[build and install instructions](/docs/build_and_install.html)
4451

52+
---
53+
4554
##About the project
4655
{: .no_toc }
4756

48-
Jinja2C++ is&copy; 2018-2019by[Flex Ferrum](https://github.com/flexferrum).
57+
Jinja2C++ is&copy; 2018-{{ "now" | date: "%Y" }}by[Flex Ferrum](https://github.com/flexferrum) and[Ruslan Morozov](https://github.com/rmorozov).
4958

5059
###License
5160
{: .no_toc }
@@ -61,16 +70,10 @@ email, or any other method with the owners of this repository before making a ch
6170
###Acknowledgments and copyrights
6271
{: .no_toc }
6372

64-
Thanks to authors of original Jinja2 specification for the exceptional work!
65-
66-
Thanks to[**manu343726**](https://github.com/Manu343726) for CMake scripts improvement, conan.io packaging and bugs hunting and fixing.
67-
68-
Thanks to[**martinmoene**](https://github.com/martinmoene) for perfectly implemented xxx-lite libraries.
69-
70-
Thanks to[**vitaut**](https://github.com/vitaut) for the amazing text formatting library.
71-
72-
Thanks to[**martinus**](https://github.com/martinus) for the fast hash maps implementation.
73-
74-
File[include/jinja2cpp/value_ptr.hpp](https://github.com/jinja2cpp/Jinja2Cpp/blob/master/include/jinja2cpp/value_ptr.hpp) Copyright © 2017-2019 by[**Martin Moene**](https://github.com/martinmoene)
75-
76-
File[src/lexertk.h](https://github.com/jinja2cpp/Jinja2Cpp/blob/master/src/lexertk.h) Originally copyright © 2001 by Arash Partow
73+
- Thanks to authors of original Jinja2 specification for the exceptional work!
74+
- Thanks to[**manu343726**](https://github.com/Manu343726) for CMake scripts improvement, conan.io packaging and bugs hunting and fixing.
75+
- Thanks to[**martinmoene**](https://github.com/martinmoene) for perfectly implemented xxx-lite libraries.
76+
- Thanks to[**vitaut**](https://github.com/vitaut) for the amazing text formatting library.
77+
- Thanks to[**martinus**](https://github.com/martinus) for the fast hash maps implementation.
78+
- File[include/jinja2cpp/value_ptr.hpp](https://github.com/jinja2cpp/Jinja2Cpp/blob/master/include/jinja2cpp/value_ptr.hpp) Copyright © 2017-2019 by[**Martin Moene**](https://github.com/martinmoene)
79+
- File[src/lexertk.h](https://github.com/jinja2cpp/Jinja2Cpp/blob/master/src/lexertk.h) Originally copyright © 2001 by Arash Partow

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp