Struct gazetta_core::view::Site
[−]
[src]
pub struct Site<'a, G> where
G: Gazetta + 'a,
G::SiteMeta: 'a, {
pub title: &'a str,
pub origin: &'a str,
pub prefix: &'a str,
pub stylesheets: Option<&'a str>,
pub javascript: Option<&'a str>,
pub icon: Option<&'a str>,
pub meta: &'a G::SiteMeta,
}
A "website"
You should include this view at the top of your websites "head". It renders into script, stylesheet, icon tags, metadata tags, and importantly the base tag.
html! {
html {
head {
: site;
// ...
}
}
}
Fields
title: &'a str
The website's title
origin: &'a str
The "canonical" origin for the website. (i.e. the
<protocol>://<domain>:<port>
part of the url)
prefix: &'a str
The path prefix at wich we're serving this website.
stylesheets: Option<&'a str>
The concatinated stylesheets.
javascript: Option<&'a str>
The concatinated javascript.
icon: Option<&'a str>
The icon.
meta: &'a G::SiteMeta
Extra metadata specified in the Source.
Trait Implementations
impl<'a, G> Deref for Site<'a, G> where
G: Gazetta + 'a,
G::SiteMeta: 'a,
[src]
G: Gazetta + 'a,
G::SiteMeta: 'a,
type Target = G::SiteMeta
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.
impl<'a, G> Copy for Site<'a, G> where
G: Gazetta + 'a,
G::PageMeta: 'a,
G::SiteMeta: 'a,
[src]
G: Gazetta + 'a,
G::PageMeta: 'a,
G::SiteMeta: 'a,
impl<'a, G> Clone for Site<'a, G> where
G: Gazetta + 'a,
G::PageMeta: 'a,
G::SiteMeta: 'a,
[src]
G: Gazetta + 'a,
G::PageMeta: 'a,
G::SiteMeta: 'a,
fn clone(&self) -> Self
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a, G> Debug for Site<'a, G> where
G: Gazetta + 'a,
G::PageMeta: 'a,
G::SiteMeta: Debug + 'a,
[src]
G: Gazetta + 'a,
G::PageMeta: 'a,
G::SiteMeta: Debug + 'a,