This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public func h1(_ attributes: [String:String]) -> ([HtmlElement]) -> HtmlElement { | |
return { content in return HtmlElement.Node(tagName: "h1", attributes: attributes, content: content) } | |
} | |
public func h1(_ attributes: [String:String], _ content: [HtmlElement]) -> HtmlElement { | |
return h1(attributes)(content) | |
} | |
public func h1(_ content: [HtmlElement]) -> HtmlElement { | |
return h1([:], content) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment