Declarative, composable, concise & fast HTML & CSS components in C++
This version contains major performance improvements, particularly for rendering of pages with thousands/millions of elements. The changes in this release should allow a stable v1.0 to soon follow.
Reworked internals to avoid all copies where possible/desired:
mutable
structure to allow std::move
out of initialiser_list
.move
-ing any supplied values, may cause breakages. See docs.
Compute component IDs at compile time:
constexpr
.Added loop
utility function: The second parameter of the callback is supplied with a Loop
object containing information such as index and total count. See docs.
Added 'head elements' to components: Components can now be constructed with a third parameter containing elements that will be collected into the new headTarget
element. This is useful for preloading component assets. See docs.
Full Changelog: https://github.com/rthrfrd/webxx/compare/v0.8.1...v0.9.2
This version contains major performance improvements, particularly for rapid rendering of pages with thousands/millions of elements:
Reworked internals to avoid all copies where possible/desired:
mutable
structure to allow std::move
out of initialiser_list
.move
-ing any supplied values, may cause breakages (docs will be updated to reflects this).Compute component IDs at compile time:
constexpr
.loop
utility function: The second parameter of the callback is supplied with a Loop
object containing information about the loop such as item index and total item count.Full Changelog: https://github.com/rthrfrd/webxx/compare/v0.9.0-alpha...v0.9.1-alpha
See the updated docs for info on both: https://github.com/rthrfrd/webxx#5-rendering
Dropping C++11 to target C++17, such that std::string_view
can be supported without adding a lot of macro complexity.
Significant change to component API:
typeid()
to identify components.