initial
This commit is contained in:
14
examples/hello.rs
Normal file
14
examples/hello.rs
Normal file
@@ -0,0 +1,14 @@
|
||||
// A very, very simple static composer example.
|
||||
|
||||
extern crate soda;
|
||||
|
||||
use soda::prelude::*;
|
||||
|
||||
|
||||
#[tokio::main]
|
||||
fn main() {
|
||||
let app = PageBase("Test Page",
|
||||
Tag::Heading1("hi!")
|
||||
);
|
||||
Server::new((0.0.0.0, 3000)).unwrap().serve(app).await;
|
||||
}
|
||||
Reference in New Issue
Block a user