Composability issues with the ppx
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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