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

alert(input)

@spec alert(input :: iodata()) :: :ok

Prints an alert. Should be used when printing critical alerts in the terminal during compile time.

get_branch(arg1)

get_helper_ast(caller)

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

print(input)

@spec print(input :: iodata()) :: :ok

Prints an indented text. Should be used when printing messages in the terminal during compile time.