Rust library to generate static websites
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: create empty example

+42
+7
Cargo.lock
··· 1810 1810 ] 1811 1811 1812 1812 [[package]] 1813 + name = "maudit-example-empty" 1814 + version = "0.1.0" 1815 + dependencies = [ 1816 + "maudit", 1817 + ] 1818 + 1819 + [[package]] 1813 1820 name = "maudit-example-kitchen-sink" 1814 1821 version = "0.1.0" 1815 1822 dependencies = [
+11
examples/empty/Cargo.toml
··· 1 + [package] 2 + name = "maudit-example-empty" 3 + version = "0.1.0" 4 + edition = "2021" 5 + publish = false 6 + 7 + [package.metadata.maudit] 8 + intended_version = "0.2.0" 9 + 10 + [dependencies] 11 + maudit = { workspace = true }
+14
examples/empty/src/main.rs
··· 1 + use maudit::{content_sources, coronate, routes, BuildOptions, BuildOutput}; 2 + 3 + mod pages { 4 + mod index; 5 + pub use index::Index; 6 + } 7 + 8 + fn main() -> Result<BuildOutput, Box<dyn std::error::Error>> { 9 + coronate( 10 + routes![pages::Index], 11 + content_sources![], 12 + BuildOptions::default(), 13 + ) 14 + }
+10
examples/empty/src/pages/index.rs
··· 1 + use maudit::page::prelude::*; 2 + 3 + #[route("/")] 4 + pub struct Index; 5 + 6 + impl Page for Index { 7 + fn render(&self, _ctx: &mut RouteContext) -> RenderResult { 8 + "Hello, world!".into() 9 + } 10 + }