Skip to content

Commit

Permalink
Merge pull request #11 from vapor-community/feature/string-literal-va…
Browse files Browse the repository at this point in the history
…riable

TemplateValue string literal conformance fix
  • Loading branch information
MatsMoll authored Dec 29, 2019
2 parents 946c801 + 7a8489f commit 6f807d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/HTMLKit/View Builders/TemplateBuilder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1666,6 +1666,10 @@ public struct Stylesheet: HTMLComponent {
self.url = url
}

public init(url: String) {
self.url = .constant(url)
}

public var body: HTML {
Link()
.relationship(.stylesheet)
Expand Down

0 comments on commit 6f807d4

Please sign in to comment.