Rust library to generate static websites
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(pages): Allow defining multiple pages in one file

+4 -2
+4 -2
crates/macros/src/lib.rs
··· 68 68 let path_for_route = make_params_dynamic(&path, &params, 0); 69 69 let file_path_for_route = url_to_file_path(&path, attrs.is_endpoint_file, &params); 70 70 71 + let raw_params = format_ident!("RawParams_{}", struct_name); 72 + 71 73 let expanded = quote! { 72 - struct RawParams { 74 + struct #raw_params { 73 75 #(#struct_def_params,)* 74 76 } 75 77 76 - impl RawParams { 78 + impl #raw_params { 77 79 fn get_field_names() -> Vec<&'static str> { 78 80 vec![#(stringify!(#struct_def_params)),*] 79 81 }