11#![ allow( non_snake_case) ]
2- { % if platform == "Fullstack " %}
2+ { % if platform == "fullstack " %}
33#![ allow( unused) ]
44use dioxus_fullstack:: prelude:: * ;
55{ % endif %}
@@ -9,7 +9,7 @@ use dioxus_router::prelude::*;
99use dioxus:: prelude:: * ;
1010use log:: LevelFilter ;
1111
12- { % if platform == "Liveview " %}
12+ { % if platform == "liveview " %}
1313{ % if backend == "Axum" %}
1414#[ tokio:: main]
1515async fn main ( ) {
@@ -179,7 +179,7 @@ fn main() {
179179 dioxus_tui:: launch ( app) ;
180180}
181181{ % endif %}
182- { % if platform == "Fullstack " %}
182+ { % if platform == "fullstack " %}
183183fn main( ) {
184184 // Init debug
185185 dioxus_logger:: init ( LevelFilter :: Info ) . expect ( "failed to init logger" ) ;
@@ -192,15 +192,15 @@ fn main() {
192192{ % endif %}
193193
194194{ % if router %}
195- { % if platform != "Fullstack " %}
195+ { % if platform != "fullstack " %}
196196fn app ( cx : Scope ) -> Element {
197197 render ! {
198198 Router :: <Route > { }
199199 }
200200}
201201{ % endif %}
202202
203- { % if platform != "Fullstack " %}
203+ { % if platform != "fullstack " %}
204204#[ derive( Clone , Routable , Debug , PartialEq ) ]
205205enum Route {
206206 #[ route( "/" ) ]
@@ -209,7 +209,7 @@ enum Route {
209209 Blog { id : i32 } ,
210210}
211211{ % endif %}
212- { % if platform == "Fullstack " %}
212+ { % if platform == "fullstack " %}
213213#[ derive( Clone , Routable , Debug , PartialEq , serde:: Serialize , serde:: Deserialize ) ]
214214enum Route {
215215 #[ route( "/" ) ]
@@ -230,7 +230,7 @@ fn Blog(cx: Scope, id: i32) -> Element {
230230#[ component]
231231fn Home ( cx : Scope ) -> Element {
232232 let mut count = use_state ( cx, || 0 ) ;
233- { % if platform == "Fullstack " %}
233+ { % if platform == "fullstack " %}
234234 let text = use_state ( cx, || "..." . to_string ( ) ) ;
235235 { % endif %}
236236
@@ -245,7 +245,7 @@ fn Home(cx: Scope) -> Element {
245245 h1 { "High-Five counter: {count}" }
246246 button { onclick: move |_| count += 1 , "Up high!" }
247247 button { onclick: move |_| count -= 1 , "Down low!" }
248- { % if platform == "Fullstack " %}
248+ { % if platform == "fullstack " %}
249249 button {
250250 onclick: move |_| {
251251 to_owned![ text] ;
@@ -277,7 +277,7 @@ fn app(cx: Scope) -> Element {
277277}
278278{ % endif %}
279279
280- { % if platform == "Fullstack " %}
280+ { % if platform == "fullstack " %}
281281#[ server( PostServerData ) ]
282282async fn post_server_data ( data : String ) -> Result < ( ) , ServerFnError > {
283283 println ! ( "Server received: {}" , data) ;
0 commit comments