1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//  Copyright (C) 2015 Steven Allen
//
//  This file is part of gazetta.
//
//  This program is free software: you can redistribute it and/or modify it under the terms of the
//  GNU General Public License as published by the Free Software Foundation version 3 of the
//  License.
//
//  This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
//  without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
//  the GNU General Public License for more details.
//
//  You should have received a copy of the GNU General Public License along with this program.  If
//  not, see <http://www.gnu.org/licenses/>.
//

//! Gazetta is a static site generator and this crate contains the core functionality.
//!
//! If you just want to use gazetta, see [the project page][project].
//!
//! If you want to extend gazetta, you should fork [gazetta-bin][] and then read the
//! [gazetta][] documentation. [gazetta][] contains some extra abstractions for generating static
//! websites but aren't absolutely essential (so they aren't built-in to gazetta-core).
//!
//! [gazetta-bin]: https://github.com/Stebalien/gazetta-bin
//! [project]: http://stebalien.com/projects/gazetta
//! [gazetta]: http://github.com/Stebalien/gazetta

extern crate chrono;
extern crate glob;
extern crate yaml_rust;
extern crate str_stack;
extern crate url;

#[macro_use]
extern crate horrorshow;

#[macro_use]
extern crate lazy_static;

#[macro_use]
pub mod error;
pub mod render;
pub mod model;
pub mod util;
pub mod yaml;
pub mod view;

pub mod prelude {
    pub use chrono::Datelike;
    pub use render::Gazetta;
}