We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce918b8 commit b22ee02Copy full SHA for b22ee02
Sources/SwiftHtml/Html/Tags/Meta.swift
@@ -67,9 +67,16 @@ public extension Meta {
67
return self
68
}
69
70
+ /// set a custom name for the given meta tag
71
+ func name(_ value: String) -> Self {
72
+ node.upsert(Attribute(key: "name", value: value))
73
+ return self
74
+ }
75
+
76
/// Specifies a name for the metadata
77
func name(_ value: Name) -> Self {
- node.upsert(Attribute(key: "name", value: value.rawValue))
- return self
78
+ name(value.rawValue)
79
80
81
82
0 commit comments