Added nested blocks support (inner_blocks). ACF Only.

This commit is contained in:
2025-05-12 17:28:39 -06:00
parent 95e0cae3ed
commit a22a179eff
4 changed files with 12 additions and 11 deletions
+9
View File
@@ -119,6 +119,15 @@ function renderBlock(templateHbs, jsonData, target) {
return '/';
});
Handlebars.registerHelper('inner_blocks', function (options) {
const content = options.data.root['inner_blocks'];
if (!content) {
return '';
}
return new Handlebars.SafeString(content);
});
let html;
try {