Skip to content

Commit

Permalink
[fix] New initilizer in order to fix compiler error
Browse files Browse the repository at this point in the history
  • Loading branch information
MatsMoll committed Dec 29, 2019
1 parent 946c801 commit 7a8489f
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 7a8489f

Please sign in to comment.