forge
Explore
Log in

Don't you dare go Hollow

im

Clone
★ 0

0 watching0 forksRustAGPL-3.0542.8 KiBb9f0726Tahinli27 days ago34 commits

mod.rs29 lines, 658 bytesHistoryRawDownload
1//! The pages and the page-level layers. One file per page.
2
3pub mod admin;
4pub mod email;
5pub mod home;
6pub mod invite;
7pub mod login;
8pub mod not_found;
9pub mod people;
10pub mod photo;
11pub mod preferences;
12pub mod profile;
13pub mod reset;
14pub mod security;
15pub mod sessions;
16pub mod setup;
17
18use topcoat::context::Cx;
19use topcoat::router::raw_path_params;
20
21/// The value of the route parameter `name` of the matched route, or `None` when there is none.
22pub fn path_param(cx: &Cx, name: &str) -> Option<String> {
23 raw_path_params(cx)
24 .find(|(param, _)| *param == name)
25 .map(|(_, value)| value.as_str().to_owned())
26}
27
28#[cfg(test)]
29mod tests;