shield v0.2.0 Shield.Router.Helpers

Module with named helpers generated from Shield.Router.

Summary

Functions

app_path(conn_or_endpoint, action)
app_path(conn_or_endpoint, action, params)
app_path(conn_or_endpoint, action, id, params)
app_url(conn_or_endpoint, action)
app_url(conn_or_endpoint, action, params)
app_url(conn_or_endpoint, action, id, params)
client_path(conn_or_endpoint, action)
client_path(conn_or_endpoint, action, params)
client_path(conn_or_endpoint, action, id, params)
client_url(conn_or_endpoint, action)
client_url(conn_or_endpoint, action, params)
client_url(conn_or_endpoint, action, id, params)
path(data, path)

Generates the path information including any necessary prefix.

static_path(conn, path)

Generates path to a static asset given its file path.

static_url(conn, path)

Generates url to a static asset given its file path.

token_path(conn_or_endpoint, action)
token_path(conn_or_endpoint, action, id)
token_path(conn_or_endpoint, action, id, params)
token_url(conn_or_endpoint, action)
token_url(conn_or_endpoint, action, id)
token_url(conn_or_endpoint, action, id, params)
url(data)

Generates the connection/endpoint base URL without any path information.

user_path(conn_or_endpoint, action)
user_path(conn_or_endpoint, action, params)
user_url(conn_or_endpoint, action)
user_url(conn_or_endpoint, action, params)