howdy/context/url
Helper functions to handle URL elemnts of the context.
Functions
pub fn get_float(context: Context, 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, 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, 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")