feat: Proporcionar versión a las plantillas si no es proporcionada por el llamador
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user