Validate blocks

This commit is contained in:
Adria Navarro 2025-02-27 13:18:39 +01:00
parent b0c4bc5d3d
commit 20c956e0d6
1 changed files with 4 additions and 1 deletions

View File

@ -45,7 +45,10 @@ export function validateHbsTemplate(
) { ) {
const ignoreMissing = options?.ignoreMissing || false const ignoreMissing = options?.ignoreMissing || false
nodes.forEach(node => { nodes.forEach(node => {
if (isMustacheStatement(node) && isPathExpression(node.path)) { if (
(isMustacheStatement(node) || isBlockStatement(node)) &&
isPathExpression(node.path)
) {
const helperName = node.path.original const helperName = node.path.original
const from = const from =