"#;
let world = "World!";
let component_if: &str;
let x = 3;
if x == 1 {
component_if = "
x = 1";
} else if x == 2 {
component_if = "
x = {{x}}";
} else {
component_if = "
x ≠1 & x ≠2. The 'x' value is ( {{x}} )";
};
let float_vector = vec![1.0, 2.0, 3.0];
let forloop_float = do_forloop(&float_vector, "", "", "", "");
let forloop_float_ol = do_forloop(
&float_vector,
"
",
"- ",
"
",
"
",
);
let html_to_string = do_html!(
html_template,
page_title = do_text("Home Page"),
hello = "Hello",
world = world,
component_if = component_if,
x = x,
forloop_float = forloop_float,
forloop_float_ol = forloop_float_ol
);
println!("{}", do_home_page());
println!("{}", html_to_string);
println!("{}", do_about_page());
let task_2 = task::spawn(print_numbers(1, 4));
task::block_on(task_2);
}
```
### Result
```shell
3
2
1
Hello, World!
Status Code: 200, Message: OK
Home Page
Home Page
GPRS | Home Page
👋 Hello, World!
x ≠1 & x ≠2. The 'x' value is ( 3 )
123
- 1
- 2
- 3
About Page
About Page
1
2
3
```
## Documentation
- [asyncore crate docs](https://docs.rs/asyncore/latest/asyncore)
- [cans crate](https://crates.io/crates/cans)
- [chief crate](https://crates.io/crates/chief)
- [futures module: futures crate](https://crates.io/crates/futures)
- [ghttp crate docs](https://docs.rs/ghttp/latest/ghttp)
- [mathlab crate (math module)](https://crates.io/crates/mathlab)
- [regexy crate](https://crates.io/crates/regexy)
- [runtime module: tokio crate](https://crates.io/crates/tokio)
- [wtime crate](https://crates.io/crates/wtime)
## License
This project is licensed under either of the following licenses:
- MIT License
- Apache License, Version 2.0
You may choose either license for your purposes.
## Contributing
Contributions are welcome! Please feel free to submit a pull request or open an issue for any feature requests or bug reports.
## Author
[Dr. Montasir Mirghani](https://github.com/dr-montasir)