// // Created by lukas on 5/11/25. // #include #include "HtmxTableRow.h" using namespace std; void HtmxTableRow::add_button(string_view endpoint, string_view name, string_view text) { html += format("\ \ {} \ \ ", endpoint, name, text); } static string_view get_button_class(bool is_active) { return is_active ? "active-button" : "inactive-button"; } void HtmxTableRow::add_status_box(std::string_view name, bool is_active) { html += format("{}", get_button_class(is_active), name); } void HtmxTableRow::add(string_view text) { html += format("{}", text); } void HtmxTableRow::complete() { html += ""; }