feat: Added page to template context.

This commit is contained in:
Spencer Brower
2026-07-28 10:37:27 -04:00
parent e742832a4b
commit 178b02da74
7 changed files with 42 additions and 45 deletions
+3 -3
View File
@@ -12,7 +12,7 @@ Inner :: struct {
Outer :: struct {
title: string,
page_title: string,
page.title: string,
inner: Inner,
numbers: [3]int,
}
@@ -150,8 +150,8 @@ test_validate_map_path_silent :: proc(t: ^testing.T) {
@(test)
test_suggest_correction_exact :: proc(t: ^testing.T) {
available := []string{"title", "page_title", "body"}
testing.expect_value(t, suggest_correction(available, "page_titel"), "page_title")
available := []string{"title", "page.title", "body"}
testing.expect_value(t, suggest_correction(available, "page_titel"), "page.title")
}
@(test)