ocsigen / ocsigen/tyxml

Composability issues with the ppx

Open
#106 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement syntax extension
Dominant language
OCaml
Stars
179
Forks
63
Avg merge
5h
Merged PRs (30d)
22

Description

Here is an example of something that doesn't work:

let mytitle = [%html5 "<title>A Fabulous Web Page</title>" ]

let mypage = [%html5
  "<html>
    <head>"mytitle"</head>
    <body></body>"
]

Error message by markup: "head element must have exactly one title child element".

I don't know how solvable it is. It sounds tricky.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the nested [%html5] example and inspect the ppx and markup validation paths involved in composing the title into the head. Done means the example composes successfully while the existing requirement that a head have exactly one title remains enforced.

Written by the indexing model from the issue text.

Assessment

Tech stack
ocaml
Domain
web-dev
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.