hybriel
Question: lowercase imports named like HTML tags
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
Anton opened the ticket Anton changed the state review Caramboleyo commented what hybrilior feature do you mean?
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', everyform { … }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?Caramboleyo commented Thats actually an intended feature. I have a habit of doing it like that, especially with form. So no warning needed.
Caramboleyo changed the state open 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.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.