on master help sign in
docs for /$
commitbfb1919778567ef61a967087307a4605ae8f5bc2 authorTed Blackman <ted@tlon.io> dateWed 6 Sep 2017, 12:13 (9 years ago) parenta2056de
1 file changed+22
docs/arvo/internals/ford/runes.md+22
docs/arvo/internals/ford/runes.md+22
@@ -252,3 +252,25 @@ produces two `<script>` tags. The first has its contents set to the contents
252252of the JavaScript file we loaded from clay. The second is an auto-update
253253script that polls the server to check whether the dependency hash has changed.
254254This pattern is used in urbit's `tree` web publishing system.
255+
256+
257+### `/$` process extra arguments
258+
259+`/$` will slam a gate on whatever extra arguments have been supplied to this build.
260+At the moment, only HTTP requests forwarded by `%eyre` contain any extra arguments,
261+and using this rune outside of that context will cause an error. Requests from `%eyre`
262+contain an argument representing the query string, which can be parsed using the
263+standard library gate `++fuel`.
264+
265+Example:
266+```
267+/= gas /$ fuel
268+::
269+:*
270+ %who {<(~(get ju aut.ced.gas) 0)>}
271+ %where {(spud s.bem.gas)}
272+ %case {(scow %ud p.r.bem.gas)}
273+==
274+```
275+produces: [%who '~zod' %where /ford/pages/web %case 60]
276+