sugar-framework / sugar

Modular web framework for Elixir
https://sugar-framework.github.io/
MIT License
430 stars 29 forks source link

Update Docs on Website #73

Closed mishavetl closed 8 years ago

mishavetl commented 9 years ago

Hello,

Documentation on the website is really outdated and not full. I can try to update it

Thanks!

slogsdon commented 9 years ago

Hi @mishavetl, and thanks for the feedback! Could you specify what is out of date? We had recently went through our documentation to update recently changed parts, so we're hoping there wasn't anything we missed.

Anyways, we'd gladly accept any PR's if you want to help out, and if you have any questions along the way, just let us know!

mishavetl commented 9 years ago

There is no docs on args in routes

slogsdon commented 9 years ago

Ah, gotcha. I'm not sure how that got missed. Maybe because of Sugar using the same underlying routing as Plug.Router. Essentially, you have two options for arguments in routes:

For both simple parameters and globs, the capture is named with whatever comes after the prefix character, and whatever is acceptable for Elixir identifiers can be used for the name of the capture.

ghost commented 8 years ago

@mishavetl May I have your opinion about the current state of the documentation? :)

mishavetl commented 8 years ago

I think it is much better.