Skip to content

Commit fe371b1

Browse files
committed
upd
1 parent 567a971 commit fe371b1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/whackds.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ ds::comp! {
6767

6868
## Style blocks
6969

70+
A component tag accepts `<w:Style> `tags only if it defines a `stylesheets: Option<whack::ds::StyleSheets>` field.
71+
7072
The creator can separate a large CSS into a file. This uses `include_str!()` under the hood and still uses lazy parsing for efficiency.
7173

7274
```rust
@@ -87,10 +89,11 @@ r###"
8789

8890
Or use `b:x=` for passing a `Binary` (common for icons).
8991

90-
The creator may spread other style blocks as well:
92+
The creator may spread existing style sheets:
9193

9294
```rust
93-
<w:Style extend={style_blocks}/>
95+
<w:Style extend={stylesheets}/>
96+
// `stylesheets: Option<whack::ds::StyleSheets>
9497
```
9598

9699
The creator may pass a `HashMap<String, String>` as arguments to a style sheet...

0 commit comments

Comments
 (0)