Page MenuHomePhorge

mod.rs
No OneTemporary

Size
451 B
Referenced Files
None
Subscribers
None
use pmc::config;
use tera::Tera;
pub fn create_templates() -> (Tera, String) {
let mut tera = Tera::default();
let path = config::read().get_path();
tera.add_raw_templates(vec![
("view", include_str!("dist/view.html")),
("login", include_str!("dist/login.html")),
("dashboard", include_str!("dist/index.html")),
])
.unwrap();
return (tera, path.trim_end_matches('/').to_string());
}
pub mod assets;

File Metadata

Mime Type
text/plain
Expires
Tue, Dec 16, 12:29 PM (1 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
484969
Default Alt Text
mod.rs (451 B)

Event Timeline