website example

This commit is contained in:
Jorijn van der Graaf 2025-11-12 17:50:58 +01:00
commit c4f764e4ce
6 changed files with 198 additions and 182 deletions

View file

@ -30,6 +30,7 @@ export namespace Crafter::CppDOMBindings {
}
__attribute__((import_module("env"), import_name("setInnerHTML"))) void SetInnerHTML(void* ptr, const char* html, std::int32_t htmlLenght);
void SetInnerHTML(void* ptr, const std::string_view html) {
std::cout << "bind" << std::endl;
SetInnerHTML(ptr, html.data(), html.size());
}