25 lines
585 B
Rust
25 lines
585 B
Rust
![]() |
use serde::Serialize;
|
||
|
|
||
|
/// The settings that a "global" to a single dustjs render.
|
||
|
#[derive(Debug, Serialize)]
|
||
|
pub(crate) struct GlobalSettings {
|
||
|
/// The title that goes in the html <title> tag in the <head>.
|
||
|
page_title: Option<String>,
|
||
|
css_files: Vec<String>,
|
||
|
js_files: Vec<String>,
|
||
|
}
|
||
|
|
||
|
impl GlobalSettings {
|
||
|
pub(crate) fn new(
|
||
|
page_title: Option<String>,
|
||
|
css_files: Vec<String>,
|
||
|
js_files: Vec<String>,
|
||
|
) -> GlobalSettings {
|
||
|
GlobalSettings {
|
||
|
page_title,
|
||
|
css_files,
|
||
|
js_files,
|
||
|
}
|
||
|
}
|
||
|
}
|