package cow
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=aa2af4afef967d7f10a58abab0558ca1032b464088106f25155ed42fb26e42d7
md5=a880cc867cea10fe68c36e6501407365
CHANGES.md.html
CHANGES.md
2.2.0:
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.
2.1.0 (21-May-2016):
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.
2.0.1 (03-May-2016):
Turn off warnings-as-errors, which fixes build under 4.03
Add OCaml test cases for OCaml 4.03.
2.0.0: (13-Mar-2016):
Remove camlp4 syntax extension support
Expose more and clean-up Html combinators
1.4.1 (unreleased):
Fix XML and HTML labeled argument assignment antiquotation syntax bug (#86)
Fix CSS space-less antiquotation syntax bug
1.4.0 (27-Sep-2015):
Improve compatability 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).
1.3.0 (02-Aug-2015)
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)
1.2.2 (30-Jul-2015)
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)
1.2.1 (05-Mar-2015):
Fix compatibility of the
json
syntax extension withezjsonm
version 0.4 (#68)
1.2.0 (06-Feb-2015):
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 tagsNew
Html.a
constructor for easy creation of tagsDeprecate function
Html.html_of_link
and typeHtml.link
1.1.0 (20-Dec-2014):
Add OPAM 1.2 compatible description file (#53).
Fix compatibility with
ezjsonm
version 0.4+ (#55).
1.0.0 (26-Aug-2014):
Fix OCaml 4.02 compatibility by not exposing a
Location
module in syntax extensions to avoid a namespace clash. We now rename them toXml_location
andCss_location
and pack those instead.Fix BSD compatibility using
$(MAKE)
instead ofmake
(since the GNU make binary is actuallygmake
on Free/Net/OpenBSD).Reduce the verbosity of the build by default.
Travis: Add OCaml 4.02 and OPAM 1.2.0 tests
0.10.1 (10-Aug-2014):
Fix Xml.of_string "" invalid argument bug
0.10.0 (26-Apr-2014):
Remove JSON parsing in favour of using
jsonm
instead.Stop testing OCaml 3.12.1 (although it may continue to work).
0.9.1 (20-Dec-2013):
Fix parsing of empty attributes in XML/HTML/XHTML.
0.9.0 (20-Dec-2013):
Remove all the Markdown variants except
Omd
, which now claims theCow.Markdown
module name.Clarify the repository license as ISC.
Run some modules through
ocp-indent
.
0.8.1 (15-Dec-2013):
Fix META file to include
omd
.Improve ocamldoc in CSS module and document quotations in README.
Add
merlin
editor file.
0.8.0 (12-Dec-2013):
Add Travis continuous integration scripts.
Add
Omd_markdown
module based on theomd
library.Note: The
Markdown
andMarkdown_github
modules are now deprecated and will be removed before 1.0.
0.7.0 (25-Sep-2013):
Add an OPAM script that installs the right dependencies.
Make native dynlink optional if not supported by the toolchain.
Add support for
<xml:base>
in Atom feeds.
0.6.2 (30-Jul-2013):
Fix code highlighting of integer literals with underscores.
Fix XML parsing and printing for fragments and full documents.
Fix handling of whitespaces in antiquotation attributes.
0.6.1 (03-Jul-2013):
Tweak CSS syntax highlighting of OCaml code to fit Anil's superior colour taste.
Add a
Code.ocaml_fragment
to get just the syntax highlighted bits without the wrapper tags.Expose a
decl
option to make theXml.to_string
declaration prefix optional.Do not output a
<?xml
declaration inHtml.to_string
.
0.6.0 (21-Jun-2013):
Add URI anti-quotation expander that maps
$uri:u$
toUri.to_string u
.Xmlm is now an external dependency instead of being bundled with Cow.
Remove
?templates
fromHtml.of_string
andXml.of_string
.
0.5.5 (12-Jun-2013):
Markdown to HTML now generates header titles inside the anchor (previously, a space was anchored).
0.5.4 (21-May-2013):
Add
json_of
andof_json
type-conv providers (#6).Add
Json.to_string_hum
which adds more newlines for human-readable output (#7).Document the
-cow-no-open
camlp4 flag (#9).Be compatible with Core by using
List.concat
instead ofList.flatten
(#2).Fix Atom feed by adding a
link
field.Install
.mli
files with the library binaries (#11).New dependency on the
Uri
library.
0.5.3 (18-Feb-2013):
Correct META file for
cow.syntax
to not repeat theStr
module loading.Fix error with unary sum types for HTML generation.
Support JSON marshalling for
option
types.
0.5.2 (15-Jan-2013):
Remove dependency towards the Str module
0.5.1 (10-Jan-2013):
Fix bugs in
Markdown_github
and factorize html serialization functionsNew antiquotation kinds for CSS
Add xhtml quotations (which are identical to html from now on)
0.5.0 (04-Dec-2012):
Remove the broken
Twitter
moduleAdd
Markdown_github
to read Github's markdown files
0.4.0 (05-Oct-2012):
Support (and require) type_conv-108.07.00+
0.3.2 (11-Sep-2012):
Add
<:html<
quotation, based on the XML generator, but with all the XHTML entities also supplied.
0.3.1 (04-Sep-2012):
Fix the OCamlfind META file.
0.3.0 (02-Sep-2012):
Initial public release.