From 7a8489f14478abfe5e4650a444e79bd47ebc4038 Mon Sep 17 00:00:00 2001 From: Mats Eikeland Mollestad Date: Sun, 29 Dec 2019 20:12:28 +0100 Subject: [PATCH] [fix] New initilizer in order to fix compiler error --- Sources/HTMLKit/View Builders/TemplateBuilder.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/HTMLKit/View Builders/TemplateBuilder.swift b/Sources/HTMLKit/View Builders/TemplateBuilder.swift index cf1f622d..a2be061b 100644 --- a/Sources/HTMLKit/View Builders/TemplateBuilder.swift +++ b/Sources/HTMLKit/View Builders/TemplateBuilder.swift @@ -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)