Sugar v0.4.11 API Reference

Modules

A task to compile Sugar source files

Runs Sugar and all registered children in their servers

Creates Sugar controller files

Creates Sugar model files

Creates Sugar router files

Creates Sugar view files

Creates Sugar support files for new projects after adding Sugar as a project dependency

Creates Sugar controller, model (+ queries and migration), and view files for a resource

Web framework for Elixir, built on top of Plug

Controllers facilitate some separation of concerns for your application’s logic

All controller actions should have an arrity of 2, with the first argument being a Plug.Conn representing the current connection and the second argument being a Keyword list of any parameters captured in the route path

Sugar’s base supervisor

Allows for finding of templates within an applications to pass off to Templates for compiling/rendering