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,
|
||||
scripts: null,
|
||||
// supply version to templates if not provided by caller
|
||||
version: locals.version ?? pkg.version ?? "2.0.0",
|
||||
...locals,
|
||||
title: locals.title ?? defaultTitle,
|
||||
body: pageBody,
|
||||
|
||||
Reference in New Issue
Block a user