Comments (4)
Looks interesting
from bustache.
Nice to hear. Hopefully, difference means tinja is also faster on your machine?
Maybe, i will find the time to implement the full mustache spec, but as of now, this is sufficient for my purposes.
I also wanted to keep my impl small (200 lines of code).
from bustache.
Nice to hear. Hopefully, difference means tinja is also faster on your machine?
Yep.
BTW, in case you didn't know, you could feed your tinja::DataMap
to bustache::format
, you only need to implement some traits for tinja::StringRef
, also, I'm curious why it's not std::string_view
but std::reference_wrapper<const String>
. I guess you want to avoid the ambiguity in Data
variant constructor?
from bustache.
Yep, i am aware that i could use tinja::DataMap
to bustache. I also tried to use your native data implementation. However, i did not succeed yet and i simply took the nlohmann adapter, because i was using that anyway for another template engine.
I did some performance comparions with std::string_view
and std::reference_wrapper<const String>
and discovered, that the latter is even more performant than std::string_view
. Avoiding the ambiguity had been a nice side-effect. :)
from bustache.
Related Issues (20)
- Can't compile with gcc on Linux
- Compilation error with C++17 variant conflict
- Insert a template into another template? HOT 2
- `boost::unordered_map<>` vs `std::unordered_map<>` HOT 1
- Improve CMake package integration HOT 1
- Add line/column info to `format_error` HOT 2
- Bustache RVO HOT 1
- How to search Bustache Object for data? HOT 2
- Search Bustache Object for data - enhansement HOT 2
- thank you and may I have some more, please HOT 2
- Empty string on one case but not a similar other one HOT 1
- Is interface for Bustache C++20 incomplete? HOT 10
- Bustache compiles fine using nlohmann::json but not with nlohmann::ordered_json containers HOT 2
- Is it possible to execute a function when a specific replacement tag is rendered? HOT 1
- Bustache data adapter for Nlohmann Json? HOT 2
- Cannot compile with clang 14 HOT 3
- Examples using headers from test HOT 1
- Make context misses trigger an error HOT 5
- Cannot compile with Apple LLVM version 9.1.0 (clang-902.0.39.1) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bustache.