Added new tag() and ctag() universal tag helpers to the HTMLBuilder binder class.

This commit is contained in:
Relintai 2022-12-18 16:48:19 +01:00
parent 99dd7022a5
commit f9ef920ec5
2 changed files with 350 additions and 329 deletions

File diff suppressed because it is too large Load Diff

View File

@ -509,6 +509,9 @@ public:
Ref<_HTMLBuilder> csrf_token(const String &token); Ref<_HTMLBuilder> csrf_token(const String &token);
Ref<_HTMLBuilder> csrf_tokenr(Ref<WebServerRequest> request); Ref<_HTMLBuilder> csrf_tokenr(Ref<WebServerRequest> request);
Ref<_HTMLTag> tag(const String &p_tag, const bool p_simple = false);
Ref<_HTMLBuilder> ctag(const String &p_tag);
void f(); void f();
// write // write
@ -535,7 +538,7 @@ public:
protected: protected:
static void _bind_methods(); static void _bind_methods();
Ref<_HTMLTag> tag; Ref<_HTMLTag> _tag;
}; };
#endif #endif