This commit is contained in:
parent
fb2f6079cc
commit
934c94cb5c
50 changed files with 10464 additions and 758 deletions
|
|
@ -2,7 +2,7 @@
|
|||
catcrafts.net
|
||||
Copyright (C) 2026 Catcrafts
|
||||
|
||||
The source code of this website is made available for viewing purposes only.
|
||||
The source code of this website is made available for viewing purposes only.
|
||||
No permission is granted to copy, modify, distribute, or create derivative works.
|
||||
*/
|
||||
|
||||
|
|
@ -12,5 +12,16 @@ import std;
|
|||
using namespace Crafter;
|
||||
|
||||
export namespace Catcrafts {
|
||||
void RenderRoot(const std::string_view route);
|
||||
}
|
||||
// Render the route currently in the address bar and rebind its links.
|
||||
void RenderCurrentRoute();
|
||||
|
||||
// Navigate client-side: push history, then render. Used by the link
|
||||
// interception in BindLinks(); also the entry point for any programmatic
|
||||
// navigation.
|
||||
void NavigateTo(std::string_view path);
|
||||
|
||||
// Link interception is internal to the client-rendered fallback path — a
|
||||
// server-rendered page never intercepts, because normal navigation to
|
||||
// another fully-rendered page is already fast and hijacking it would only
|
||||
// add ways to be wrong.
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue