Struct gazetta_core::view::Page [] [src]

pub struct Page<'a, G> where
    G: Gazetta + 'a,
    G::PageMeta: 'a,
    G::SiteMeta: 'a, 
{ pub title: &'a str, pub description: Option<&'a str>, pub date: Option<&'a Date>, pub href: &'a str, pub index: Option<Index<'a, G>>, pub meta: &'a G::PageMeta, pub content: Content<'a>, }

Represents an indevidual page to be rendered.

Fields

The page's title.

An optional description of the page.

The page's date.

The page's location.

The index contained in this page, if any.

Extra metadata specified in the Entry.

The page's content.

If you want to use the default renderer, just render the page itself.

html! {
    div(id="content") : page;
}

Methods

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

[src]

Creates a page for an entry. This does not fill in the index.

Trait Implementations

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

impl<'a, G> Clone for Page<'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 Page<'a, G> where
    G: Gazetta + 'a,
    G::PageMeta: Debug + 'a,
    G::SiteMeta: 'a, 
[src]

[src]

Formats the value using the given formatter. Read more

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

The resulting type after dereferencing.

[src]

Dereferences the value.

Auto Trait Implementations

impl<'a, G> Send for Page<'a, G> where
    <G as Gazetta>::PageMeta: Sync

impl<'a, G> Sync for Page<'a, G> where
    <G as Gazetta>::PageMeta: Sync