Skip to content

Commit

Permalink
Make Script component public (#195)
Browse files Browse the repository at this point in the history
* Make Script component public

* Update Script
  • Loading branch information
ptoffy authored Jun 23, 2024
1 parent 3ffdb8d commit 2783dd1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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,8 +11,8 @@ struct Script: Component {
init(url: URLRepresentable) {
self.url = url
}
var body: Component {

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

0 comments on commit 2783dd1

Please sign in to comment.