Incendium.Controller.__using__

You're seeing just the macro __using__, go back to Incendium.Controller module for more information.
Link to this macro

__using__(opts)

View Source (macro)

Turn the current module into an Icendium controller.

Options:

  • routes_module (required) - The module that contains the routes in your application (it should be something like YourApp.Router.Helpers)

  • :otp_app (required) - The main OTP application

Examples

defmodule MyApp.IncendiumController do
  use Incendium.Controller,
    routes_module: MyApp.Router.Helpers,
    otp_app: :my_app
end