Added content quick tag.

This commit is contained in:
Relintai 2021-10-30 23:31:54 +02:00
parent e61bc79af5
commit b3c1b6ccac
2 changed files with 10 additions and 0 deletions

View File

@ -23,16 +23,25 @@ HTMLTag *HTMLTag::cls(const std::string &val) {
return this; return this;
} }
HTMLTag *HTMLTag::id(const std::string &val) { HTMLTag *HTMLTag::id(const std::string &val) {
attrib("id", val); attrib("id", val);
return this; return this;
} }
HTMLTag *HTMLTag::name(const std::string &val) { HTMLTag *HTMLTag::name(const std::string &val) {
attrib("name", val); attrib("name", val);
return this; return this;
} }
HTMLTag *HTMLTag::content(const std::string &val) {
attrib("content", val);
return this;
}
HTMLTag *HTMLTag::value(const std::string &val) { HTMLTag *HTMLTag::value(const std::string &val) {
attrib("value", val); attrib("value", val);

View File

@ -20,6 +20,7 @@ public:
HTMLTag *cls(const std::string &val); HTMLTag *cls(const std::string &val);
HTMLTag *id(const std::string &val); HTMLTag *id(const std::string &val);
HTMLTag *name(const std::string &val); HTMLTag *name(const std::string &val);
HTMLTag *content(const std::string &val);
HTMLTag *value(const std::string &val); HTMLTag *value(const std::string &val);
HTMLTag *method(const std::string &val); HTMLTag *method(const std::string &val);
HTMLTag *type(const std::string &val); HTMLTag *type(const std::string &val);