Html Builder #540
Replies: 5 comments 7 replies
-
kuchta: I quite often think of koka as one of the best languages for the web, because it has compatible syntax that allow dashes in indentifiers. I image a future where I can write JSX like expressions in it. Writing html in a template languages (even tagged strings) never felt very pleasant to me and it would miss a lot of opportinities the React world already realized... |
Beta Was this translation helpful? Give feedback.
-
@TimWhiting Thank you, Tim. Interesting... I wouldn't have thought of using effects to achieving that. Looking forward to play with it as soon as the new version is released. 🎉 |
Beta Was this translation helpful? Give feedback.
-
@TimWhiting Thanks, Tim. 🙏🏻 Some time ago I've come across ESX, which I've found quite interesting. It's based on JSX, but I think we can do better (or maybe not, we'll see 🙂) https://es.discourse.group/t/proposal-esx-as-core-js-feature/1511 |
Beta Was this translation helpful? Give feedback.
-
Greetings! To get myself familiar with latest Koka, I'm playing with the
Help pls! FYI, a template-using example at: https://github.com/complyue/html/blob/cyue-play/examples/front.kk I created a PR for better context: |
Beta Was this translation helpful? Give feedback.
-
Used a type aliasing approach, now does it seem like a typing bug of Koka?
|
Beta Was this translation helpful? Give feedback.
-
@kuchta Let's continue the HTML building discussion here, I'll copy some of the context. Would you be alright with deleting / editing selected parts of the other discussion to streamline it for when Daan takes a look at it?
The basic idea for everyone else who finds this discussion is finding a way to have a domain specific language DSL or nice syntax for building nested tree structures.
Beta Was this translation helpful? Give feedback.
All reactions