tyxml icon indicating copy to clipboard operation
tyxml copied to clipboard

Build valid HTML and SVG documents

Results 63 tyxml issues
Sort by recently updated
recently updated
newest added

This is WIP. ``` ocaml open Tyxml let%template f ={| Hello {{name}}, You are {{{desc}}} {{#list}} {{foo}} {{name}} {{/list}} {{^list}} No foos :( {{/list}} |} val f : name:bytes ->...

Currently, this translation module is hardcoded in `js_of_ocaml` and is quite partial (according to @hhugo). Given the new reflect mechanism we have in tyxml, it seems like it would be...

enhancement
syntax extension
html & svg standard

Trying to implement the following example from the W3C HTML5 specification: https://www.w3.org/TR/2011/WD-html5-20110525/the-map-element.html#authoring, I stumbled upon several problems. First, as I discovered it by accident, `map [map []]` won't compile while...

```ocaml open Tyxml let page title content = [%html {| |} title {| |} content {| |}] let a_or_button contents = if true then Html.a contents else Html.button contents let...

enhancement
typing

Aria (https://www.w3.org/TR/wai-aria/) is the accessibility standard for HTML. It allows to add various annotations on HTML nodes wrt accessibility. Since https://github.com/ocsigen/tyxml/pull/172, we have primitive support for `a_role` on all html...

enhancement
html & svg standard

I would like to gather comments about whether people think it would be a good idea to inline the `nullary`/`unary`/`star` [type abbreviations](https://github.com/ocsigen/tyxml/blob/master/lib/html_sigs.mli#L107). I personally would like this to happen (and...

enhancement
typing

Using the ppx, the following pattern, which would be nice to have, is currently unsupported: ```ocaml # fun extra_classes -> [%html {| |}];; Error: Error: Mixing literals and OCaml expressions...

enhancement
syntax extension

I came across a possible naming inconsistency for `` `Class`` -- it seems to use `` `Style_Attr`` rather than the more consistent (to my mind) `` `Style_attr``

enhancement
breaking

Editing html with the ppx is ... a bit annoying. - You don't get any fancy html handling/coloring. It would be nice to have something for that. - Emacs: I...

enhancement
syntax extension

There has been several request of a templating method in tyxml. Also, with the various other ppx coming, finally cleaning up the syntax extension question might be a good idea....

enhancement
syntax extension