Sugar v0.4.2

Modules summary

Mix.Tasks.Compile.Sugar

A task to compile Sugar source files

Mix.Tasks.Server

Runs Sugar and all registered children in their servers

Mix.Tasks.Sugar.Gen.Controller

Creates Sugar controller files

Mix.Tasks.Sugar.Gen.Model

Creates Sugar model files

Mix.Tasks.Sugar.Gen.Router

Creates Sugar router files

Mix.Tasks.Sugar.Gen.View

Creates Sugar view files

Mix.Tasks.Sugar.Init

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

Mix.Tasks.Sugar.Scaffold

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

Sugar

Web framework for Elixir, built on top of Plug

Sugar.App
Sugar.Controller

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

Sugar.Controller.Helpers

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.Router

Sugar.Router defines an alternate format for Plug.Router routing. Supports all HTTP methods that Plug.Router supports

Sugar.Supervisor

Sugar’s base supervisor

Sugar.Views.Finder

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