Skip to content

Commit

Permalink
docs: add instruction to replace perseus_integration (#197)
Browse files Browse the repository at this point in the history
* docks: add instruction to replace perseus_integration

* Recommend `perseus_warp`
  • Loading branch information
Arrekin authored Oct 17, 2022
1 parent e678d44 commit 8612c9e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion examples/.base/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@ mod templates;

use perseus::{Html, PerseusApp};

#[perseus::main(perseus_integration::dflt_server)]

/// Replace `<perseus_integration>` with an integration of your choice.
/// Examples of supported integrations:
/// - perseus_warp (recommended)
/// - perseus-actix-web
/// - perseus-axum
#[perseus::main(<perseus_integration>::dflt_server)]
pub fn main<G: Html>() -> PerseusApp<G> {
PerseusApp::new()
.template(crate::templates::index::get_template)
Expand Down

0 comments on commit 8612c9e

Please sign in to comment.