Routex.Router (Routex v1.2.2)
View SourceProvides macro (callbacks) to alter route definition before compilation.
use Routex.Router
When you use Routex.Router
, the Routex.Router module will
plug Routex.Processing
between the definition of routes and the
compilation of the router module. It also imports the preprocess_using
macro which can be used to mark routes for Routex preprocessing using the
Routex backend provided as first argument.
Summary
Functions
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.
Functions
@spec preprocess_using(Routex.Types.backend(), Routex.Types.opts(), [ {:do, Routex.Types.ast()} ]) :: Routex.Types.ast()
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.
Replaces interpolation syntax with a string for macro free processing by
extensions. Format: [rtx.{binding}]
.