Skip to content
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

HTML Library #374

Open
bryanjos opened this issue Aug 30, 2017 · 17 comments
Open

HTML Library #374

bryanjos opened this issue Aug 30, 2017 · 17 comments

Comments

@bryanjos
Copy link
Collaborator

bryanjos commented Aug 30, 2017

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

@vans163
Copy link
Contributor

vans163 commented Aug 30, 2017

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

@bryanjos
Copy link
Collaborator Author

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

@Harleymckee
Copy link

Harleymckee commented Aug 31, 2017

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

@bryanjos
Copy link
Collaborator Author

@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.

@OvermindDL1
Copy link

@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.

@bryanjos
Copy link
Collaborator Author

@OvermindDL1 that would be awesome!

@OvermindDL1
Copy link

@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. ^.^

@bryanjos
Copy link
Collaborator Author

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.

@OvermindDL1
Copy link

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

@bryanjos
Copy link
Collaborator Author

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

@OvermindDL1
Copy link

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. :-)

@bryanjos
Copy link
Collaborator Author

Will do

@bryanjos
Copy link
Collaborator Author

bryanjos commented Sep 6, 2017

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

@OvermindDL1
Copy link

@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. :-)

@bryanjos
Copy link
Collaborator Author

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

@bryanjos
Copy link
Collaborator Author

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

@OvermindDL1
Copy link

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. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants