catcrafts.net/interfaces/Catcrafts-Root.cppm

27 lines
919 B
Text
Raw Normal View History

2025-11-12 21:56:18 +01:00
/*
catcrafts.net
Copyright (C) 2026 Catcrafts
2025-11-12 21:56:18 +01:00
2026-08-05 04:18:37 +02:00
The source code of this website is made available for viewing purposes only.
2025-11-12 21:56:18 +01:00
No permission is granted to copy, modify, distribute, or create derivative works.
*/
export module Catcrafts:Root;
import Crafter.Graphics;
2025-11-12 21:56:18 +01:00
import std;
using namespace Crafter;
export namespace Catcrafts {
2026-08-05 04:18:37 +02:00
// 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.
}