ocsigen / ocsigen/tyxml

Ppx ideas

Open
#123 3 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

I'm not sure those are good ideas, but we can at least think about them. :)

  • Allow to write
    [%html "<foo>" bar ; baz "</foo>"]
    instead of
    [%html "<foo>" [bar ; baz] "</foo>"]
    It's probably far too clever and irregular for its own good.
  • Allow slicing directly inside the text with some %bar syntax.
    [%html "<foo>%bar</foo>"]
    instead of
    [%html "<foo>"bar"</foo>"]
    Would be convenient to avoid constant quoting-unquoting.

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

The issue proposes two speculative PPX syntax changes, illustrated with [%html] examples for omitted brackets and inline %bar interpolation. Start by reviewing these examples and the surrounding PPX behavior; a concrete syntax decision and acceptance criteria are needed before completion can be defined.

Written by the indexing model from the issue text.

Assessment

Tech stack
ocaml
Domain
tooling, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.