fable-compiler / repl

Fable online REPL
http://fable.io/repl
MIT License
64 stars 38 forks source link

Add html to elmish command #50

Open MangelMaxime opened 6 years ago

MangelMaxime commented 6 years ago

It should be possible to add HTML to Elmish support in the REPL should we add it?

The main motivation being, the REPL could be something used in a meetup to teach Fable/Elmish. The benefit being, there is no requirement needed other than having Chrome/Safari installed.

@forki @alfonsogarciacaro

alfonsogarciacaro commented 6 years ago

Hmm, if it's easy it could be a nice addition, but I'm always wary of duplicating capabilities because maintenance then becomes difficult. If you're planning to keep the html-to-elmish website, it may be possible to just add a link somehow (in a new tab so users don't need to reload the REPL when going back). The command could be used to open the html-to-elmish website passing the selected text as a url parameter.

Also, if we add the command and it's successful, people will ask why it's not supported in offline editors ;)