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

The website's title

The "canonical" origin for the website. (i.e. the <protocol>://<domain>:<port> part of the url)

The path prefix at wich we're serving this website.

The concatinated stylesheets.

The concatinated javascript.

The icon.

Extra metadata specified in the Source.

Trait Implementations

impl<'a, G> Deref for Site<'a, G> where
    G: Gazetta + 'a,
    G::SiteMeta: 'a, 
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl<'a, G> Copy for Site<'a, G> where
    G: Gazetta + 'a,
    G::PageMeta: 'a,
    G::SiteMeta: 'a, 
[src]

impl<'a, G> Clone for Site<'a, G> where
    G: Gazetta + 'a,
    G::PageMeta: 'a,
    G::SiteMeta: 'a, 
[src]

[src]

Returns a copy of the value. Read more

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]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a, G> Send for Site<'a, G> where
    <G as Gazetta>::SiteMeta: Sync

impl<'a, G> Sync for Site<'a, G> where
    <G as Gazetta>::SiteMeta: Sync