rgrempel / elm-route-url

Router for single-page-apps in Elm
http://package.elm-lang.org/packages/rgrempel/elm-route-url/latest
MIT License
196 stars 16 forks source link

Added index.html and style.css #10

Closed c-franklin closed 8 years ago

c-franklin commented 8 years ago

Hello.

I've just started working in Elm – I've come from using Angular and Knockout. Very glad to have found a router for Elm :-)

It took me a while to figure out which files I needed to start up the router – so I added an index.html and also turned the layout table in a div layout and added style.css – these files may be useful to beginners I hope!

(Also – I've added .idea to the .gitignore which you may want to remove).

Thank you. Charlotte

rgrempel commented 8 years ago

Thanks for this!

I'm going to be away for a week, so I won't be able to look at this right away. But I just wanted to acknowledge it in the meantime.

amitaibu commented 8 years ago

It took me a while to figure out which files I needed to start up the router

I think a better solution would be to document that the elm-reactor is/ can be used to see the examples

c-franklin commented 8 years ago

Sounds good.

I deleted the index.html and ran elm reactor - but couldn't figure out how to view any pages without the index.html. What would the instructions be for using elm reactor on its own?

For now – I put index.html back in and added instructions at top of readme to run up elm reactor plus the URL to view.

rgrempel commented 8 years ago

My apologies for not getting back to this until now!

I've added some documentation to the example that mentions using elm-reactor to run the examples locally -- that probably is the easiest way to do it. And, now there are three different variations on the example (so three different files to start with when compiling, or using elm-reactor).