Skip to content

Commit

Permalink
Make Script component public
Browse files Browse the repository at this point in the history
  • Loading branch information
ptoffy committed Jun 23, 2024
1 parent 3ffdb8d commit 9a8b569
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/VaporDesign/Components/Script.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Plot

/// Component used to render an `<script>` element for embetdding scripts.
struct Script: Component {
public struct Script: Component {
/// The URL of the script.
var url: URLRepresentable

Expand All @@ -11,7 +11,7 @@ struct Script: Component {
init(url: URLRepresentable) {
self.url = url
}

var body: Component {
Node<HTML.BodyContext>.script(.src(url))
}
Expand Down

0 comments on commit 9a8b569

Please sign in to comment.