//! The pages and the page-level layers. One file per page. pub mod admin; pub mod email; pub mod home; pub mod invite; pub mod login; pub mod not_found; pub mod people; pub mod photo; pub mod preferences; pub mod profile; pub mod reset; pub mod security; pub mod sessions; pub mod setup; use topcoat::context::Cx; use topcoat::router::raw_path_params; /// The value of the route parameter `name` of the matched route, or `None` when there is none. pub fn path_param(cx: &Cx, name: &str) -> Option { raw_path_params(cx) .find(|(param, _)| *param == name) .map(|(_, value)| value.as_str().to_owned()) } #[cfg(test)] mod tests;