Skip to content

Commit

Permalink
feat: ✨ added template method to define function for amalgamating states
Browse files Browse the repository at this point in the history
  • Loading branch information
arctic-hen7 committed Aug 22, 2021
1 parent 5e03cad commit 1cb4356
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/perseus/src/template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,10 @@ impl<G: GenericNode> Template<G> {
self.revalidate_after = Some(val);
self
}
pub fn amalgamate_states_fn(mut self, val: AmalgamateStatesFn) -> Template<G> {
self.amalgamate_states = Some(val);
self
}
}

/// Gets a `HashMap` of the given templates by their paths for serving. This should be manually wrapped for the pages your app provides
Expand Down

0 comments on commit 1cb4356

Please sign in to comment.