howdy/context/url

Helper functions to handle URL elemnts of the context.

Functions

pub fn get_float(context: Context(a), key: String) -> Result(
  Float,
  Nil,
)

Gets a dynamic segment for the URL of type Float. Returns Error(Nil) if no matching float is found for the given key

Example

get_float(context, "name")
pub fn get_int(context: Context(a), key: String) -> Result(
  Int,
  Nil,
)

Gets a dynamic segment for the URL of type Int. Returns Error(Nil) if no matching int is found for the given key

Example

get_int(context, "name")
pub fn get_string(context: Context(a), key: String) -> Result(
  String,
  Nil,
)

Gets a dynamic segment for the URL of type String. Returns Error(Nil) if no matching string is found for the given key

Example

get_string(context, "name")
pub fn get_uuid(context: Context(a), key: String) -> Result(
  UUID,
  Nil,
)

Gets a dynamic segment for the URL of type Uuid. Returns Error(Nil) if no matching float is found for the given key

Example

get_uuid(context, "name")