Skip to content

Instantly share code, notes, and snippets.


owensd/h1.swift Secret

Created April 6, 2017 05:37
What would you like to do?
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