Releases: mirage/ocaml-cow
Releases · mirage/ocaml-cow
2.5.0
v2.4.0
2.3.0
2.3.0 (29-04-2018)
- Port to jbuilder/dune (@samoht, #102)
- Fix atom feeds (@hannesm, #101)
- Improve the functions generating HTML tags with no content (@Chris00, #100)
- Improve documentation (@Chris00, #99)
- Add a "ty" (type) argument to
Html.link
(@Chris00, #99) - Update
Html.script
to take a Uri.t for "src" (@Chris00, #99) Html.a
: make ~href optional (also used for anchors) (@Chris00, #99)- Add the optional argument ?attrs to
Html.a
(@Chris00, #99) - Use and for table construction (when appropriate) (@Chris00, #99)
More HTML5 combinators, use module aliases and topkg
- Port to use module aliases, so there are now
Cow_xml
Cow_html
Cow_xhtml
Cow_markdown
Cow_json
andCow_atom
modules,
with aliases to the old scheme under theCow
module (e.g.Cow.Xml
).
Existing code should continue to work, but the whole compilation unit
is no longer linked in if just a single method of output is used.
This bumps the minimum OCaml version to 4.02.3 due to the use of
module-level aliases. - Switch build system to use
topkg
instead ofoasis
, and adhere
to theopkg
layout format. - Add description lists (dl/dt/dd)
- Add ~licls/~dtcls/~ddcls to Html.ul/ol/dl. Setting classes of child
elements in lists is sometimes useful. - Add some missing HTML5 combinators.
OCaml 4.03 compatibility
- Turn off warnings-as-errors, which fixes build under 4.03
- Add OCaml test cases for OCaml 4.03.
OCamldoc and API compatibility
- Improve compatibility with Type_conv >= 113.00 by renaming some of the
syntax parser modules to be less generically named. - Add ocamldoc generation and improve the
Html.Create
library
(from @chrismamo1 in #82).
CSS and HTML improvements
- Add
Css.of_string
,Css.set_prop
,Css.get_prop
,Css.polygradient
.
Css.gradient
(#74, by @chrismamo1) - Add optional arguments to
Css.top_rounded
,Css.rounded
,Css.box_shadow
andCss.text_shadow
(#74, by @chrismamo1) - Add
Html.concat
,Html.append
,Html.Create.ul
andHtml.Create.ol
(#74, by @chrismamo1)
Fix int32 support in JSON syntax
- Fix int32 conversion to float in JSON syntax (#76, by Antoine Luciani)
- Fix a regression introduced in 1.2.0 in
make test
(#72 by @dsheets) - Modernize
.travis.yml
to useocaml-travisci-skeleton
(by @dsheets) - Remove direct dependency on re (#71, by @rgrinberg)
- Add a
.merlin
file (#70, by @rgrinberg)
Support new ezjsonm in syntax extension
- Fix compatibility of the
json
syntax extension withezjsonm
version 0.4 (#68)
Now with valid HTML5 Output
- When serializing HTML, only self-close void elements.
- New
Html.doctype
value of the HTML5 DOCTYPE. - New
Html.output
andHtml.output_doc
functions for generic polyglot output. - Atom support is now deprecated in favor of Syndic
- New
Html.img
constructor for easy creation of tags - New
Html.a
constructor for easy creation of tags - Deprecate function
Html.html_of_link
and typeHtml.link