Skip to content

Commit

Permalink
refactor: updated to typed options system in example basis
Browse files Browse the repository at this point in the history
  • Loading branch information
arctic-hen7 committed Mar 28, 2022
1 parent 02c3c03 commit 7a7dd6c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions examples/.base/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
mod error_pages;
mod templates;

use perseus::define_app;
define_app! {
templates: [
crate::templates::index::get_template::<G>()
],
error_pages: crate::error_pages::get_error_pages()
use perseus::{Html, PerseusApp};

#[perseus::main]
pub fn main<G: Html>() -> PerseusApp<G> {
PerseusApp::new()
.template(crate::templates::index::get_template)
.error_pages(crate::error_pages::get_error_pages)
}

0 comments on commit 7a7dd6c

Please sign in to comment.