View Source Routex.Router (Phoenix Routes Extension Framework v0.1.0-alpha.3)

Provides macro (callbacks) to alter route definition before compilation.

Link to this section Summary

Functions

Macro callback that plugs Routex.Processing between route definition and compilation of the router module. It also imports the preprocess_using macro which can be used to mark routes with a Routex configuration for Routex processing.

Wraps each enclosed route in a scope, marking it for processing by Routex using given backend. opts can be used to partially override the given configuration.

Link to this section Functions

Link to this macro

__using__(options)

View Source (macro)
@spec __using__(opts :: list()) :: Macro.output()

Macro callback that plugs Routex.Processing between route definition and compilation of the router module. It also imports the preprocess_using macro which can be used to mark routes with a Routex configuration for Routex processing.

Link to this macro

preprocess_using(backend, opts \\ [], list)

View Source (macro)
@spec preprocess_using(module(), opts :: list(), [{:do, ast :: Macro.t()}]) ::
  ast :: Macro.t()

Wraps each enclosed route in a scope, marking it for processing by Routex using given backend. opts can be used to partially override the given configuration.