glitr/path
Types
pub type PathConverter(path_type) {
PathConverter(
encoder: fn(path_type) -> List(String),
decoder: fn(List(String)) -> Result(path_type, Nil),
)
}
Constructors
-
PathConverter( encoder: fn(path_type) -> List(String), decoder: fn(List(String)) -> Result(path_type, Nil), )
Functions
pub fn complex_path(converter: PathConverter(a)) -> RoutePath(a)
pub fn static_path(root: List(String)) -> RoutePath(Nil)