We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
showcase
1 parent eb21299 commit 7a3dd63Copy full SHA for 7a3dd63
examples/showcase/src/templates/index.rs
@@ -22,8 +22,11 @@ pub fn get_template<G: GenericNode>() -> Template<G> {
22
}
23
24
#[perseus::autoserde(build_state)]
25
-pub async fn get_static_props(_path: String, _locale: String) -> RenderFnResultWithCause<String> {
26
- Ok(serde_json::to_string(&IndexPageProps {
+pub async fn get_static_props(
+ _path: String,
27
+ _locale: String,
28
+) -> RenderFnResultWithCause<IndexPageProps> {
29
+ Ok(IndexPageProps {
30
greeting: "Hello World!".to_string(),
- })?)
31
+ })
32
0 commit comments