mirror of
https://github.com/sbrow/thor.git
synced 2026-08-26 11:23:32 -04:00
feat: page prop now falls through (implicit access).
This commit is contained in:
+9
-2
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user