back

hawk is for hoon

anyone can [hoon].
-- auguste gusteau


hawk is an environment where knowing hoon is empowering.

for real things, right now.

and you only need to know 1 hoon rune to get started.


the ;> rune means: treat everything afterwards as a markdown-like document.

example:

;> # hello world this is a hoon (hawk-500) file which outputs an html node (aka manx). paragraphs looks like paragraphs. pretty simple. - list item - ok this is really easy - what? really this is hoon? [link to docs](https://docs.urbit.org) ![image of a flower](https://....jpg)

hello world

this is a hoon (hawk-500) file which outputs an html node (aka manx).

paragraphs looks like paragraphs. pretty simple.

  • list item

  • ok this is really easy

  • what? really this is hoon?

link to docs

image of a flower


it's that easy!

as you get more comfortable in hawk, you can progressively add in more hoon.

here's an example which uses a bit more hoon to generate a bunch of numbered boxes.

;> # hello again! here are some numbered boxes ;div.frw.g1 ;* %+ turn (gulf 0 30) |= n=@ ;div.bd2.p-1: {<n>} == powerfully mix code and prose to create documents.

hello again!

here are some numbered boxes

0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

powerfully mix code and prose to create documents.


yer a [hooner], hary!
-- hagred