catcrafts.net/interfaces/Catcrafts-Root.cppm
Jorijn van der Graaf 934c94cb5c
Some checks failed
Deploy / build-deploy (push) Failing after 4m56s
rewrite
2026-08-05 04:18:37 +02:00

27 lines
919 B
C++

/*
catcrafts.net
Copyright (C) 2026 Catcrafts
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.
*/
export module Catcrafts:Root;
import Crafter.Graphics;
import std;
using namespace Crafter;
export namespace Catcrafts {
// 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.
}