Skip to content

Commit f231d96

Browse files
committed
upd
1 parent 59dcc45 commit f231d96

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

src/overview/embed.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,20 @@ External files are typically embedded in a structured way in the final program,
3838

3939
The user may embed files statically as either an UTF-8 encoded String, or `ByteArray`, or CSS node depending on the framework, rather than obtaining an URL.
4040

41+
For a String:
42+
4143
```sx
42-
// String
4344
Embed("BeautySecrets.txt", type="text/plain")
44-
// ByteArray
45+
```
46+
47+
For a ByteArray:
48+
49+
```sx
4550
Embed("Hacker.bin", type="application/octet-stream")
46-
// For Whack, a whack.ds.StyleSheetNode
51+
```
52+
53+
For a style sheet node (like `whack.ds.StyleSheetNode` for Whack):
54+
55+
```sx
4756
Embed("AppBarSkin.css", type="text/css")
4857
```

0 commit comments

Comments
 (0)