├── .gitignore ├── .ocamlformat ├── .travis.yml ├── CHANGES.md ├── LICENSE.md ├── Makefile ├── README.md ├── cow.opam ├── dune-project ├── src ├── atom.ml ├── atom.mli ├── cow.ml ├── cow.mli ├── dune ├── html.ml ├── html.mli ├── json.ml ├── json.mli ├── markdown.ml ├── markdown.mli ├── xhtml.ml ├── xhtml.mli ├── xml.ml └── xml.mli └── test ├── basic.ml ├── dune └── render.ml /.gitignore: -------------------------------------------------------------------------------- 1 | _build 2 | _opam 3 | *~ 4 | \.\#* 5 | \#*# 6 | *.install 7 | .merlin 8 | basic.html 9 | -------------------------------------------------------------------------------- /.ocamlformat: -------------------------------------------------------------------------------- 1 | version = 0.26.1 2 | profile = conventional 3 | break-infix = fit-or-vertical 4 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: c 2 | install: wget https://raw.githubusercontent.com/ocaml/ocaml-ci-scripts/master/.travis-docker.sh 3 | script: bash -ex .travis-docker.sh 4 | services: 5 | - docker 6 | env: 7 | global: 8 | - PINS="cow:." 9 | - DISTRO="debian-stable" 10 | matrix: 11 | - PACKAGE="cow" OCAML_VERSION="4.05" 12 | - PACKAGE="cow" OCAML_VERSION="4.06" 13 | - PACKAGE="cow" OCAML_VERSION="4.07" 14 | -------------------------------------------------------------------------------- /CHANGES.md: -------------------------------------------------------------------------------- 1 | ### v2.5.0 (10-03-2019) 2 | 3 | * Add integrity and crossorigin attributes (#108, @tbrk) 4 | * Dune packaging fixes and updates (#109, #112, @craife, @samoht) 5 | 6 | ### v2.4.0 (10-03-2019) 7 | 8 | * Port to dune fully (#105 @emillon) 9 | * Upgrade opam metadata to 2.0 (@avsm) 10 | 11 | ### 2.3.0 (29-04-2018) 12 | 13 | * Port to jbuilder/dune (@samoht, #102) 14 | * Fix atom feeds (@hannesm, #101) 15 | * Improve the functions generating HTML tags with no content (@Chris00, #100) 16 | * Improve documentation (@Chris00, #99) 17 | * Add a "ty" (type) argument to `Html.link` (@Chris00, #99) 18 | * Update `Html.script` to take a Uri.t for "src" (@Chris00, #99) 19 | * `Html.a`: make ~href optional (also used for anchors) (@Chris00, #99) 20 | * Add the optional argument ?attrs to `Html.a` (@Chris00, #99) 21 | * Use and
for table construction (when appropriate) (@Chris00, #99) 22 | 23 | ### 2.2.0 (15-09-2017) 24 | 25 | * Port to use module aliases, so there are now `Cow_xml` `Cow_html` 26 | `Cow_xhtml` `Cow_markdown` `Cow_json` and `Cow_atom` modules, 27 | with aliases to the old scheme under the `Cow` module (e.g. `Cow.Xml`). 28 | Existing code should continue to work, but the whole compilation unit 29 | is no longer linked in if just a single method of output is used. 30 | This bumps the minimum OCaml version to 4.02.3 due to the use of 31 | module-level aliases. 32 | * Switch build system to use `topkg` instead of `oasis`, and adhere 33 | to the `opkg` layout format. 34 | 35 | ### 2.1.0 (21-05-2016) 36 | 37 | * Add description lists (dl/dt/dd) 38 | * Add ~licls/~dtcls/~ddcls to Html.ul/ol/dl. Setting classes of child 39 | elements in lists is sometimes useful. 40 | * Add some missing HTML5 combinators. 41 | 42 | ### 2.0.1 (03-05-2016) 43 | 44 | * Turn off warnings-as-errors, which fixes build under 4.03 45 | * Add OCaml test cases for OCaml 4.03. 46 | 47 | ### 2.0.0: (13-05-2016) 48 | 49 | * Remove camlp4 syntax extension support 50 | * Expose more and clean-up Html combinators 51 | 52 | ### 1.4.1 (unreleased) 53 | 54 | * Fix XML and HTML labeled argument assignment antiquotation syntax bug (#86) 55 | * Fix CSS space-less antiquotation syntax bug 56 | 57 | ### 1.4.0 (27-09-2015) 58 | 59 | * Improve compatability with Type_conv >= 113.00 by renaming some of the 60 | syntax parser modules to be less generically named. 61 | * Add ocamldoc generation and improve the `Html.Create` library 62 | (from @chrismamo1 in #82). 63 | 64 | ### 1.3.0 (02-08-2015) 65 | 66 | * Add `Css.of_string`, `Css.set_prop`, `Css.get_prop`, `Css.polygradient`. 67 | `Css.gradient` (#74, by @chrismamo1) 68 | * Add optional arguments to `Css.top_rounded`, `Css.rounded`, `Css.box_shadow` 69 | and `Css.text_shadow` (#74, by @chrismamo1) 70 | * Add `Html.concat`, `Html.append`, `Html.Create.ul` and `Html.Create.ol` 71 | (#74, by @chrismamo1) 72 | 73 | ### 1.2.2 (30-07-2015) 74 | 75 | * Fix int32 conversion to float in JSON syntax (#76, by Antoine Luciani) 76 | * Fix a regression introduced in 1.2.0 in `make test` (#72 by @dsheets) 77 | * Modernize `.travis.yml` to use `ocaml-travisci-skeleton` (by @dsheets) 78 | * Remove direct dependency on re (#71, by @rgrinberg) 79 | * Add a `.merlin` file (#70, by @rgrinberg) 80 | 81 | ### 1.2.1 (05-04-2015) 82 | 83 | * Fix compatibility of the `json` syntax extension with `ezjsonm` version 0.4 84 | (#68) 85 | 86 | ### 1.2.0 (06-02-2015) 87 | 88 | * When serializing HTML, only self-close void elements. 89 | * New `Html.doctype` value of the HTML5 DOCTYPE. 90 | * New `Html.output` and `Html.output_doc` functions for generic polyglot output. 91 | * Atom support is now deprecated in favor of Syndic 92 | * New `Html.img` constructor for easy creation ofName | Email Address | 217 |
---|---|
John Christopher McAlpine | christophermcalpine\@gmail.com | 220 |
Somebody McElthein | johnqpublic\@something.something | 223 |
John Doe | johndoe\@johndoe.com | 226 |