Struct ferru::document::Document [] [src]

pub struct Document { /* fields omitted */ }

A struct representation of a Ferru document, consisting of a YAML header and a String body.

Methods

impl Document
[src]

[src]

Creates a new document from the provided Header and content &str.

[src]

Renders the document content to a String, using the header data as the templating attributes.

[src]

Renders the document to the desired file path, selecting the template specified in the "template" header field as the header from the list of provided templates.

Trait Implementations

impl PartialEq for Document
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Debug for Document
[src]

[src]

Formats the value using the given formatter.