Thomas Neumann
2a77083524
fix const correctness in template_t
...
Without locking we can safely share only const objects between threads.
crow::mustache::template_t will typically be loaded once and then
reused many times across threads. Unfortunately the render() method
was not marked as const, even though it is const is practice. This commit
adds the missing const annotations to the methods involved.
2022-01-24 20:41:29 +01:00
The-EDev
e688cbd18e
Fixed another vulnerability in mustache file loading
...
and made the file sanitizer a copy-less function
2022-01-11 21:48:51 +03:00
The-EDev
0a16021442
Fix vulnrabilities in mustache and static
2022-01-11 20:27:41 +03:00
Farook Al-Sammarraie
fa77468a88
Formatting
2021-12-17 09:45:50 +03:00
Farook Al-Sammarraie
0ef48e82bb
Fixed scoping issue
...
introduced by initializing `execute_result`
2021-12-17 09:30:58 +03:00
Farook Al-Sammarraie
cca1d54ce5
took repeated code out of the if else statement
2021-12-17 09:07:46 +03:00
The-EDev
f6fd7dc85d
formatting, missing newline fixed
2021-12-11 02:38:30 +03:00
The-EDev
228e61d150
Added mustache lambda expansion
2021-12-10 05:17:25 +03:00
The-EDev
a1a4169d92
merge branch master
2021-12-10 05:12:24 +03:00
The-EDev
03e59aa446
improved bracing rules, commented out clang-format 14 rule
2021-11-27 15:28:50 +03:00
The-EDev
7f4b7c8ff9
created new rules, used bot to enforce rules in PRs
2021-11-25 14:45:38 +03:00
The-EDev
6df5c94fd9
basic lambda support added (no expansion / blocks)
2021-07-03 23:28:52 +03:00
Sfinktah Bungholio
21f6f11484
Merge branch 'master' of https://github.com/CrowCpp/crow into sfinktah-64bit-compat-1
2021-02-21 11:14:52 +11:00
Sfinktah Bungholio
6597feb3a8
converted all (int) to static_cast
2021-02-21 11:14:30 +11:00
Sfinktah Bungholio
b2cf780485
recast 64-bit size_t to 32-bit int to remove warnings
2021-02-10 21:03:21 +11:00
The-EDev
8523afa930
Update templating.md and mustache.h
...
Updated templating documentation to mention "working directory" rather than "executable directory".
Added Warning log when a template is not found.
2021-02-09 06:52:05 +03:00
The-EDev
33f1206571
made json a returnable type and removed json specific code
2021-01-05 17:49:10 +03:00
The-EDev
2422f55855
documented as much as possible relating to the API reference
2020-11-19 01:13:57 +03:00
Igor Mróz
90b46528d4
#6 Fix mustache implementation after specification update.
2020-10-30 20:29:41 +01:00
ipknHama
3081e4e1a8
Cleanup include folder into crow subfolder
...
- only crow.h is exposed now
2016-09-21 23:11:06 +09:00