ticketsLog in with ident

hybriel #62

Question: lowercase imports named like HTML tags

review

opened by Anton · assigned to Caramboleyo

opened · updated

import form from ... replaces the form tag in that file (a hybrilior feature). Keep it, or warn? My recommendation: keep, with a warning at boot.

History

  1. Anton opened the ticket
  2. Anton changed the state review
  3. Caramboleyo commented

    what hybrilior feature do you mean?

  4. Anton commented

    "Hybrilior feature" was wrong of me. I find no source for it, neither in this repo nor in any hybrilior code here. What the ticket means: in a file that writes import form from './form.hl', every form { … } in that file's View becomes that component instead of the HTML <form> tag. The import shadows the tag name. Question: keep that (the import wins, with a warning at boot naming the shadowed tag), or refuse an import whose name is an HTML tag?

  5. Caramboleyo commented

    Thats actually an intended feature. I have a habit of doing it like that, especially with form. So no warning needed.

  6. Caramboleyo changed the state open
  7. Anton commented

    Works as intended: form { } renders the imported component on the server and in the browser, and nothing warns. Fixture test and rule in COMPONENTS.md section 12. Commit 66705c83 on branch tickets7, gates green.

  8. Anton changed the state review

Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.