Orasund / elm-ui-widgets

Collection of reusable views for elm-ui.
https://orasund.github.io/elm-ui-widgets/
BSD 3-Clause "New" or "Revised" License
85 stars 11 forks source link

explorer: add tooling to display example source code #64

Closed cdevienne closed 3 years ago

cdevienne commented 3 years ago

Add some code samples in the Button page. The layout is not perfect but good enough, and the api ready to start using it for other pages.

Related to #57

Orasund commented 3 years ago

Seems like I've badly communicated: I'm currently completely rewriting the Button example. Your RP is in a direct conflict with my rewriting process.

~So here an idea: Let me try to incorporate this RP into #62 while I'm working on it. And if I've missed anything, you can reopen this RP again once #62 is done.~

Edit: I've changed my mind. Let's not have example code. This might be too big of a bite, also maintain it would not be something I'm comfortable with.

cdevienne commented 3 years ago

no problem, I agree maintenance would be cumbersome.

Orasund commented 3 years ago

I'm actually thinking of auto generating the source code for the interactive demo by scrapping the file from GitHub. Best case would be that I can directly pass it on to Ellie, so that I can automatically generate an Ellie-Link. But more on that probably later today.