View Source Routex.Utils (Routex v1.1.0)
Provides an interface to functions which can be used in extensions.
Summary
Functions
Prints an alert. Should be used when printing critical alerts in the terminal during compile time.
Returns the AST to get the current branch from process dict or from assigns, conn or socket
based on the available variables in the caller
module.
Prints an indented text. Should be used when printing messages in the terminal during compile time.
Functions
@spec alert(input :: iodata()) :: :ok
Prints an alert. Should be used when printing critical alerts in the terminal during compile time.
@spec get_helper_ast(caller :: Macro.Env.t()) :: Macro.output()
Returns the AST to get the current branch from process dict or from assigns, conn or socket
based on the available variables in the caller
module.
@spec print(input :: iodata()) :: :ok
Prints an indented text. Should be used when printing messages in the terminal during compile time.