You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: main.rs
    path of file: ./repos/moxie/dom/examples/ssr/src
    
    the code of the file until where you have to start completion: #[macro_use]
extern crate gotham_derive;
#[macro_use]
extern crate serde_derive;

use augdom::Dom;
use gotham::{
    router::{builder::*, Router},
    state::{FromState, State},
};
use mox::mox;
use moxie_dom::{
    elements::text_content::{li, ul, Ul},
    embed::DomLoop,
    prelude::*,
};

fn main() {
    let addr = "127.0.0.1:7878";
    println!("Listening for requests at http://{}", addr);
    gotham::start(addr, router())
}

#[derive(Deserialize, StateData, StaticResponseExtender)]
struct PathExtractor {
    #[serde(rename = "*")]
    parts: Vec<String>,
}

#[topo::nested]
fn simple_list(items: &[String]) -> Ul {
    let mut list = ul();
    for item in items {
        list = list.child(mox!(<li>{ item }</li>));
    }
    list.build()
}

fn parts_handler(state: State) -> (State, String) {
    let parts = {
        let path = PathExtractor::borr
    
    fn basic_list_prerender() {
        let root = augdom::create_virtual_element("div");
        let mut tester = DomLoop::new_virtual(root.clone(), move || {
            mox! {
                <ul class="listywisty">
                    <li>"first"</li>
                    <li class="item">"second"</li>
                    <li>"third"</li>
                </ul>
            }
        });

        tester.run_once();

        assert_eq!(
            &root.outer_html(),
            r#"<div><ul class="listywisty"><li>first</li><li class="item">second</li><li>third</li></ul></div>"#,
            "concisely-rendered string output must have no newlines or indentation"
        );

        assert_eq!(
            // this newline lets the below string output seem legible
            format!("\n{:#?}", &root),
            r#"
<div>
    <ul class="listywisty">
        <li>first</li>
        <li class="item">second</li>
        <li>third</li>
    </ul>
</div>"#,
            "pretty debug output must be 4-space-indented"
        );

        assert_eq!(
            // this newline lets the below string output seem legible
            format!("\n{}", &root),
            r#"
<div>
  <ul class="listywisty">
    <li>first</li>
    <li class="item">second</li>
    <li>third</li>
  </ul>
</div>"#,
            "Display output must be 2-space-indented"
        );
    }