Skip to content

Commit

Permalink
Provide more complete examples (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
jverkoey authored Sep 14, 2024
1 parent f3bdb9a commit d061eb9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ targets: [
And off you go:

```swift
import Foundation
import Slipstream

struct HelloWorld: View {
Expand All @@ -67,6 +68,15 @@ and written to disk. To help get you started though you can use Slipstream's lig
renderer to write a dictionary of Slipstream views to disk:

```swift
import Foundation
import Slipstream

struct HelloWorld: View {
var body: some View {
Text("Hello, world!")
}
}

let sitemap: Sitemap = [
"index.html": HelloWorld()
]
Expand Down

0 comments on commit d061eb9

Please sign in to comment.