cow

AuthorsAnil Madhavapeddy, Thomas Gazagnaire, David Sheets and Rudi Grinberg
LicenseISC
Homepagehttps://github.com/mirage/ocaml-cow
Issue Trackerhttps://github.com/mirage/ocaml-cow/issues
Tagsorg:mirage, org:xapi-project, www, html, xml, css, json and markdown
Maintaineranil@recoil.org
Dependencies
&camlp4
dyntype>= 0.9.0
ezjsonm>= 0.4.0
ocamlbuild
ocamlfind
omd>= 0.8.2
ounit
type_conv>= 108.07.00
ulex
uri>= 1.3.9
xmlm>= 1.1.1
Availableocaml-version >= "4.00"
PublishedSep 27, 2015
Source [http] https://github.com/mirage/ocaml-cow/archive/v1.4.0.tar.gz
9c4d71647b4287987a11b6b8a6879625
StatisticsInstalled 23 times last month.
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/cow/cow.1.4.0/opam

XML, JSON, HTML, CSS, and Markdown syntax and libraries

Writing web-applications requires a lot of skills: HTML, CSS, XML, JSON and Markdown, to name but a few! This library provides OCaml syntax extensions for these web formats by:

  • extending standard OCaml syntax with embedded web DSLs. It has a quotation mechanism which parses HTML, CSS or XML to OCaml, and also anti-quotations that form a template mechanism.

  • using type-driven code generation to generate markup directly from OCaml type declarations. It is possible to mix hand-written and generated code to deal with special-cases. Most of the work is done at pre-processing time, so there is no runtime costs and the generated OCaml code can be manually inspected if desired.

More documentation at https://github.com/mirage/ocaml-cow.