-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Missing Components #2
Comments
I'd like to try, if there is working autocompletion for Haxe code and html tags. Last time I tried coconut, autocompletion in VSCode was bad: it was either very slowly or did not work at all. Emmet commands for html tags in haxe code didn't work too. Even compilation was not good. I had to use a trick with stack depth (mentioned here MVCoconut/coconut.ui#44 (comment)) raising its value for every compilation. |
No unfortunately there is no completion inside render strings for html tags. It's because this isn't actual html, nor jsx, so might require specialized vscode plugin. While I like to have completion for code as much as possible too, I haven't found this an issue yet. Also for this library you don't have to write too much fancy html. |
Actually, it is possible to enable emmet support for haxe files.
Also, why use html strings if there is a way to not? Non-string markup gets some syntax coloring and it is more readable. |
Because inline markup is an experimental feature that may be drastically changed or even removed from Haxe.
It gets incorrect syntax highlighting. In
In short, it's nonsense. You can get decent highlighting using https://github.com/jeremyfa/haxe-xmlgrammar |
If you wants to contribute, please mention which one you are working on in the comments.
How to create a component
yarn
, open project in VSCode. You should be able to run/compile project now (usebuild.hxml
).Jumbotron
to see a simple component, look atDropdown
to see component with typed children and some interactionyarn dev
to start the webserver. open http://localhost:7070/in your browser to see the website and test your component.The text was updated successfully, but these errors were encountered: