on master help sign in
gall-guide: subscriptions - add card diagrams
commit1363f44591006b0ee40091b0edc9ae9df2d64fe5 authorTinnus Napbus <admin@tinnus-napbus.xyz> dateWed 1 Dec 2021, 01:37 (5 years ago) parente157e0a
1 file changed+5−21
content/docs/userspace/gall-guide/5-cards.md+5−21
content/docs/userspace/gall-guide/5-cards.md+5−21
@@ -122,11 +122,7 @@ These can be divided into two categories:
122122
123123**Examples**
124124
125−```hoon
126−[%pass /some/wire %agent [~some-ship %some-agent] %watch /some/path]
127−[%pass /some/wire %agent [~some-ship %some-agent] %watch-as %some-mark /some/path]
128−[%pass /some/wire %agent [~some-ship %some-agent] %leave ~]
129−```
125+![subscription card examples](https://media.urbit.org/docs/userspace/gall-guide/sub-cards.svg)
130126
131127#### Pokes
132128
@@ -143,10 +139,7 @@ in the `cage` to the `mark` you specify before sending it off.
143139
144140**Examples**
145141
146−```hoon
147−[%pass /some/wire %agent [~some-ship %some-agent] %poke %some-mark !>('some data')]
148−[%pass /some/wire %agent [~some-ship %some-agent] %poke-as %mark-to-use %some-mark !>('some-data')]
149−```
142+![poke card examples](https://media.urbit.org/docs/userspace/gall-guide/poke-cards.svg)
150143
151144### `note-arvo`
152145
@@ -176,10 +169,7 @@ section in the [Arvo documentation](/docs/arvo/arvo).
176169
177170#### Examples
178171
179−```hoon
180−[%pass /some/wire %arvo %b %wait (add ~m1 now.bowl)]
181−[%pass /some/wire %arvo %e %connect /some/url/path %some-agent]
182−```
172+![arvo card examples](https://media.urbit.org/docs/userspace/gall-guide/arvo-cards.svg)
183173
184174## `%give`
185175
@@ -218,10 +208,7 @@ if it does not. Therefore, you would not explicitly produce a `%watch-ack` or
218208
219209#### Examples
220210
221−```hoon
222−[%give %watch-ack `~[leaf+"foo" leaf+"bar"]]
223−[%give %poke-ack `~[leaf+"foo" leaf+"bar"]]
224−```
211+![ack card examples](https://media.urbit.org/docs/userspace/gall-guide/ack-cards.svg)
225212
226213### Subscriptions
227214
@@ -241,10 +228,7 @@ receive the `%fact`. The `cage` is the data itself - a cell of a `mark` and a
241228
242229#### Examples
243230
244−```hoon
245−[%give %fact ~[/some/path /another] %some-mark !>('some data')]
246−[%give %kick ~[/some/path /another] `~some-ship]
247−```
231+![gift card examples](https://media.urbit.org/docs/userspace/gall-guide/gift-cards.svg)
248232
249233## Summary
250234