mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
Add rel and rel_stylesheet into HTMLTag.
This commit is contained in:
parent
8f5c1fa4cc
commit
7e24a87c57
@ -46,6 +46,18 @@ HTMLTag *HTMLTag::type(const std::string &val) {
|
||||
return this;
|
||||
}
|
||||
|
||||
HTMLTag *HTMLTag::rel(const std::string &val) {
|
||||
attrib("rel", val);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
HTMLTag *HTMLTag::rel_stylesheet() {
|
||||
attrib("rel", "stylesheet");
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
HTMLTag *HTMLTag::attrib(const std::string &attr, const std::string &val) {
|
||||
result += " " + attr + "=\"" + val + "\"";
|
||||
|
||||
|
@ -22,6 +22,8 @@ public:
|
||||
HTMLTag *name(const std::string &val);
|
||||
HTMLTag *method(const std::string &val);
|
||||
HTMLTag *type(const std::string &val);
|
||||
HTMLTag *rel(const std::string &val);
|
||||
HTMLTag *rel_stylesheet();
|
||||
|
||||
HTMLTag *attrib(const std::string &attr, const std::string &val);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user