Struct slime::Slime [] [src]

pub struct Slime<'a> { /* fields omitted */ }

Rust library for fast prototyping and creating static websites. Use handlebars to handle html parts. Uses json and toml formats for data passed into templates. Flexible design allows to create any type of static website. Creating new project: Create new binary crate with

cargo new --bin crate_name

Open crate folder and run curl -s https://raw.githubusercontent.com/jaroslaw-weber/slime/master/init_slime.sh | bash This will download deployment scripts and create some folders. It will also create example files. Wrapper for creating a static websites. Load templates and helps with loading and inserting data into templates.

Methods

impl<'a> Slime<'a>
[src]

[src]

Create new wrapper with custom config.

[src]

Load templates (need to run only once)

[src]

Load json data from data folder. Default file extension is ".json" if not specified.

[src]

Load toml data from data folder. Default file extension is ".toml" if not specified.

[src]

Generate file. If filename has no extension then default extension is added (.html)

Trait Implementations

impl<'a> Default for Slime<'a>
[src]

[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl<'a> Send for Slime<'a>

impl<'a> Sync for Slime<'a>