feat: Proporcionar versión a las plantillas si no es proporcionada por el llamador

This commit is contained in:
Shni
2025-10-14 22:47:00 -05:00
parent 0cc6725268
commit afed7b8a11

View File

@@ -526,6 +526,8 @@ const renderTemplate = async (
{ {
head: null, head: null,
scripts: null, scripts: null,
// supply version to templates if not provided by caller
version: locals.version ?? pkg.version ?? "2.0.0",
...locals, ...locals,
title: locals.title ?? defaultTitle, title: locals.title ?? defaultTitle,
body: pageBody, body: pageBody,