diff --git a/Sources/HTMLKit/View Builders/TemplateBuilder.swift b/Sources/HTMLKit/View Builders/TemplateBuilder.swift index d8b72dfb..cf1f622d 100644 --- a/Sources/HTMLKit/View Builders/TemplateBuilder.swift +++ b/Sources/HTMLKit/View Builders/TemplateBuilder.swift @@ -1662,7 +1662,7 @@ public struct Stylesheet: HTMLComponent { @TemplateValue(String.self) var url - public init(_ url: TemplateValue) { + public init(url: TemplateValue) { self.url = url } diff --git a/Tests/HTMLKitTests/HTMLTestDocuments.swift b/Tests/HTMLKitTests/HTMLTestDocuments.swift index 29e5f8dd..ba9fec17 100644 --- a/Tests/HTMLKitTests/HTMLTestDocuments.swift +++ b/Tests/HTMLKitTests/HTMLTestDocuments.swift @@ -80,7 +80,7 @@ struct BaseView: HTMLComponent { Title { context } .useTwitter(metadata: false) .useOpenGraph(metadata: false) - Stylesheet("some url") + Stylesheet(url: "some url") Meta() .name(.viewport) .content("width=device-width, initial-scale=1.0") @@ -1138,7 +1138,7 @@ struct MetadataTest: HTMLPage { Document(type: .html5) { Head { Author { "Mats" } - .twitter(handle: .constant("@MatsMoll")) + .twitter(handle: "@MatsMoll") Title { "Some title" } Description { "Some description" } }