You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
337 B
14 lines
337 B
4 years ago
|
//! File browser template data
|
||
|
|
||
|
use super::BaseData;
|
||
|
use askama::Template;
|
||
|
|
||
|
// This struct needs escapng=none to render README files it encounters along the way
|
||
|
#[derive(Template)]
|
||
|
#[template(path = "files.html", escape = "none")]
|
||
|
pub(crate) struct Files {
|
||
|
pub base: BaseData,
|
||
|
pub path: String,
|
||
|
pub readme: Option<String>,
|
||
|
}
|