elixirscript icon indicating copy to clipboard operation
elixirscript copied to clipboard

HTML Library

Open bryanjos opened this issue 8 years ago • 17 comments

Something similar to how elm-html works. This should be a separate library.

bryanjos avatar Aug 30 '17 17:08 bryanjos

seems like this should belong in ecosystem. :elixirscript_html or something.

vans163 avatar Aug 30 '17 18:08 vans163

That's the goal. I should make that more clear

bryanjos avatar Aug 30 '17 19:08 bryanjos

this include virtual dom implementation like https://github.com/elm-lang/virtual-dom ?

Harleymckee avatar Aug 31 '17 02:08 Harleymckee

@Harleymckee yes that would mostly like be the most difficult part if something was built from scratch. Or a third-party library could be used.

bryanjos avatar Aug 31 '17 14:08 bryanjos

@Harleymckee yes that would mostly like be the most difficult part if something was built from scratch. Or a third-party library could be used.

Eh, or I could just port my bucklescript-tea VDom over.

OvermindDL1 avatar Aug 31 '17 14:08 OvermindDL1

@OvermindDL1 that would be awesome!

bryanjos avatar Aug 31 '17 14:08 bryanjos

@OvermindDL1 that would be awesome!

It is something that I'd been planning for a while of whenever I get time and ElixirScript finalizes it's API. ^.^

OvermindDL1 avatar Aug 31 '17 14:08 OvermindDL1

Cool! I think things will be pretty stable now. Just count on using Elixir's Standard Library and using the FFI where needed. There may be changes if or when processes are implemented, but those should be underlying.

bryanjos avatar Aug 31 '17 14:08 bryanjos

Is the DOM already FFI'd as a set of interfaces yet? Or does that need to be manually FFI'd?

OvermindDL1 avatar Aug 31 '17 15:08 OvermindDL1

That needs to be manually FFI'd. I haven't made any and I don't think any exists in the eco system yet.

bryanjos avatar Aug 31 '17 15:08 bryanjos

That needs to be manually FFI'd. I haven't made any and I don't think any exists in the eco system yet.

All fine, something else I can make too unless someone beats me to it. ^.^

Feel free to ping me on occasion to remind me, when my free time randomly pops up I tend to pick random things unless someone is pinging me about something. :-)

OvermindDL1 avatar Aug 31 '17 15:08 OvermindDL1

Will do

bryanjos avatar Aug 31 '17 16:08 bryanjos

@OvermindDL1 do you know what DOM FFIs would be needed? I could create something in my free time for that

bryanjos avatar Sep 06 '17 16:09 bryanjos

@bryanjos I'll probably port my bucklescript-tea VDom over (not verbatum, it has a pending redesign) and it exports from the DOM only what it has needed so far, and you can see all of those in the ml files that start with web at https://github.com/OvermindDL1/bucklescript-tea/tree/master/src if you want to get those brought over? That would then be the minimal necessary that I'd need. :-)

OvermindDL1 avatar Sep 06 '17 16:09 OvermindDL1

I've made this so far https://github.com/elixirscript/elixirscript_web

bryanjos avatar Sep 17 '17 22:09 bryanjos

I went ahead and published it to hex https://hex.pm/packages/elixir_script_web

bryanjos avatar Sep 18 '17 02:09 bryanjos

Ahh the github names and hex names do not match! ^.^; Hehe, I love that you reference MDN in the docs, that is just what everyone should do. :-)

Keep pinging me and as I get time I'll start the porting. :-)

OvermindDL1 avatar Sep 18 '17 14:09 OvermindDL1