Nui
fragment.hpp
Go to the documentation of this file.
1 #pragma once
2 
4 
5 #include <tuple>
6 
7 namespace Nui::Elements
8 {
14  template <typename... ParametersT>
15  constexpr auto fragment(ParametersT&&... params)
16  {
17  return [generator = HtmlElement{"fragmenterror", &RegularHtmlElementBridge}(
18  std::forward<ParametersT>(params)...)](auto& parentElement, Renderer const&) {
19  return generator(parentElement, Renderer{.type = RendererType::Inplace});
20  };
21  }
22 }
Definition: html_element.hpp:60
Definition: comment.hpp:10
constexpr auto fragment(ParametersT &&... params)
A fragment is a collection of elements that can be inserted into a parent without an enclosing tag.
Definition: fragment.hpp:15
constexpr auto RegularHtmlElementBridge
Definition: html_element_bridges.hpp:8
Definition: materialize.hpp:52
RendererType type
Definition: materialize.hpp:53