package cow
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Module Html.Create
Source
stylesheet style
converts a COW CSS type to a valid HTML stylesheet
table ~flags:f ~row:r tbl
produces an HTML table formatted according to f
where each row is generated by passing a member of tbl
to r
.
tbl:
a list of (probably) tuples representing a table.
See the following example:
let row = (fun (name,email) -> [ <:html<$str:name$>>; <:html<$str:email$>>]) in
let data =
\[ "Name","Email Address";
"John Christopher McAlpine","christophermcalpine\@gmail.com";
"Somebody McElthein","johnqpublic\@something.something";
"John Doe","johndoe\@johndoe.com"; \] in
let table = Html.Create ~flags:[Headings_fst_row] ~row data
which produces the HTML table
Name | Email Address |
---|---|
John Christopher McAlpine | christophermcalpine\@gmail.com |
Somebody McElthein | johnqpublic\@something.something |
John Doe | johndoe\@johndoe.com |