package css

  1. Overview
  2. Docs
CSS parser and printer

Install

Dune Dependency

Authors

Maintainers

Sources

ocaml-css-0.1.0.tar.bz2
md5=bc4bdcf47b37c7bd50bf9f31c391dcd2
sha512=8fa12c193638ba8c2d307f48e477cdac839ca25f865f7f350bc7675086c3c4a70bc1e5936d35d64aab9d8da2c9806005be70c59ac3d7f3c407a3861f6e0a7cf8

Description

OCaml-css is an OCaml library to parse and print CSS. It can also expand namespaces and perform computations on property values.

Parsing uses Angstrom to dynamically choose the parser when encountering a property declaration.

The parser can be extended by defining additional properties.

Published: 29 Mar 2023

README

OCaml-css -- CSS parser, printer and more

🌐 OCaml-css homepage

OCaml-css is an OCaml library to parse and print CSS. It can also expand namespaces and perform computations on property values.

Parsing uses Angstrom to dynamically choose the parser when encountering a property declaration.

Parser can be extended by defining additional properties.

Documentation

Documentation is available here.

Development

Development is hosted on Framagit.

There are already some predefined properties. Contributions are welcome to add more. Shorthand properties are defined too.

CSS is released under GPL3 license.

Installation

The css package is installable with opam:

opam install css

Current state of OCaml-css can be installed with:

$ opam pin add css git@framagit.org:zoggy/ocaml-css.git

Dependencies (7)

  1. rdf >= "0.14.0"
  2. logs >= "0.7.0"
  3. iri >= "0.6.0"
  4. fmt >= "0.9.0"
  5. angstrom >= "0.15.0"
  6. ocaml >= "4.12.0"
  7. dune >= "2.9"

Dev Dependencies (3)

  1. odoc with-doc
  2. lwt_ppx with-test
  3. alcotest with-test

Used by

None

Conflicts

None

OCaml

Innovation. Community. Security.