aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: a5d0d9b6d5dbb962a729ea574343c0d8204b964f (plain)
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
# gumbo_parser

A wrapper for the gumbo html5 parser library.

# Build

Before installing the library, you need to build the static library yourself.
This is due to current limitations in nimble. Building has been mostly automated
and can be achieved with the following command:

    $ nimble buildlib

This will compile and link gumbo as a static library and place it in
`gumbo_parser` directory.

If you need to regenerate the wrapper, you can issue the following command which
will use c2nim to do most of the work:

    $ nimble generatebinding

This will place the generated `gumbo.nim` file in the `gumbo_parser` directory.

# Install

Make sure you have read the *build* section above.

After building, you can install the library using nimble:

    $ nimble install