Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a translation module between html and js attributes #126

Open
Drup opened this issue Apr 14, 2016 · 1 comment
Open

Provide a translation module between html and js attributes #126

Drup opened this issue Apr 14, 2016 · 1 comment

Comments

@Drup
Copy link
Member

Drup commented Apr 14, 2016

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 either to maintain inside tyxml directly.

I would tend to propose the following:

  • Add [@reflect.js "foo"] annotations.
  • Use a reflect-like mecanism to provide bi-directional dictionnaires.
  • Allow either the html or the js attributes for the ppx.
@Drup
Copy link
Member Author

Drup commented Apr 9, 2018

@hhugo I'm doing some things around the ppx again. Do you think this is worth the effort ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant