blob: 6c93266e7646e936e338562a1e7fca722cc44928 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
//! Octopus template data structures
//!
//! All pages are generated by the server via template files that have
//! data inputs. Because the templates follow a well-defined
//! structure (i.e. `core` extended by `<type>/base` extended by
//! `<type>/<page>`, the structure of these template data structures
//! is the same.
//!
//! The actual page initialisation and rendering is nested in the
//! `page` module, which then uses the appropriate template structures
//! defined here.
pub(crate) mod repo;
/// A basic application wide template structure
pub(crate) struct BaseData {
pub version: String,
pub source: String,
pub url: String,
}
impl Default for BaseData {
fn default() -> Self {
Self {
version: "0.2.0".into(),
source: "".into(),
url: "http://localhost:8080".into(),
}
}
}
|