diff --git a/core/html/html_builder.cpp b/core/html/html_builder.cpp index e29ca41..b0e9aaf 100644 --- a/core/html/html_builder.cpp +++ b/core/html/html_builder.cpp @@ -23,16 +23,25 @@ HTMLTag *HTMLTag::cls(const std::string &val) { return this; } + HTMLTag *HTMLTag::id(const std::string &val) { attrib("id", val); return this; } + HTMLTag *HTMLTag::name(const std::string &val) { attrib("name", val); return this; } + +HTMLTag *HTMLTag::content(const std::string &val) { + attrib("content", val); + + return this; +} + HTMLTag *HTMLTag::value(const std::string &val) { attrib("value", val); diff --git a/core/html/html_builder.h b/core/html/html_builder.h index 4692c9a..ddc9c0b 100644 --- a/core/html/html_builder.h +++ b/core/html/html_builder.h @@ -20,6 +20,7 @@ public: HTMLTag *cls(const std::string &val); HTMLTag *id(const std::string &val); HTMLTag *name(const std::string &val); + HTMLTag *content(const std::string &val); HTMLTag *value(const std::string &val); HTMLTag *method(const std::string &val); HTMLTag *type(const std::string &val);