feat: page prop now falls through (implicit access).

This commit is contained in:
Spencer Brower
2026-07-28 11:58:19 -04:00
parent fcf349eb51
commit 9d1954d70a
3 changed files with 53 additions and 3 deletions
+9 -2
View File
@@ -103,10 +103,17 @@ capitalize :: proc(s: string) -> string {
render_template :: proc(
content_tpl: mustache.Template,
data: Template_Context,
ctx: Template_Context,
partials: map[string]mustache.Template,
) -> string {
result, err := mustache.render(content_tpl, data, partials)
result, err := mustache.render(
content_tpl,
[]any { /*ctx.site,*/
ctx.page,
ctx,
},
partials,
)
if err != nil {
log.errorf(
"%s",