gumbo-crystal

Bindings for Gumbo, an HTML5 parsing library made by Google gumbo
0.1.0 released

gumbo-crystal

Crystal C bindings for Gumbo library, an HTML5 parsing library made by Google - see gumbo-parser

NOTE: actually not all functions are mapped - if you find something missing contact me

Requirements

  • gumbo must be installed - see installation
  • pkg-config must be available

Installation

Add this to your application's shard.yml:

dependencies:
  gumbo-crystal:
    github: blocknotes/gumbo-crystal

Usage

require "gumbo-crystal"
output = LibGumbo.gumbo_parse "<h1>A test</h1>" # lib init
p output.value.root.value.type
LibGumbo.gumbo_destroy_output Gumbo::DefaultOptions, output # lib deinit

More examples

See examples folder.

Contributors

gumbo-crystal:
  github: blocknotes/gumbo-crystal
  version: ~> 0.1.0
License MIT
Crystal 0.20.3

Authors

Dependencies 0

Development Dependencies 0

Dependents 0

Last synced .
search fire star recently