diff --git a/bin/create-block/index.js b/bin/create-block/index.js index e7864f0b..09898039 100644 --- a/bin/create-block/index.js +++ b/bin/create-block/index.js @@ -14,16 +14,18 @@ module.exports = { editorScript: 'file:index.ts', editorStyle: 'file:index.css', style: ['file:style-index.css'], - render: 'file:render.php', }, variants: { static: {}, 'static-javascript': { blockTemplatesPath: path.join(__dirname, 'templates', 'block', 'javascript'), }, - dynamic: {}, + dynamic: { + render: 'file:render.php', + }, 'dynamic-javascript': { blockTemplatesPath: path.join(__dirname, 'templates', 'block', 'javascript'), + render: 'file:render.php', }, }, blockTemplatesPath: path.join(__dirname, 'templates', 'block', 'typescript'), diff --git a/bin/create-block/templates/block/javascript/save.jsx.mustache b/bin/create-block/templates/block/javascript/save.jsx.mustache index 687d764a..c91ecb33 100644 --- a/bin/create-block/templates/block/javascript/save.jsx.mustache +++ b/bin/create-block/templates/block/javascript/save.jsx.mustache @@ -18,8 +18,8 @@ import { useBlockProps } from '@wordpress/block-editor'; */ export default function save() { return ( -
- { '{{title}} – hello from the saved content!' } +
+ {'{{title}} – hello from the saved content!'}
); } diff --git a/bin/create-block/templates/block/typescript/save.tsx.mustache b/bin/create-block/templates/block/typescript/save.tsx.mustache index 687d764a..c91ecb33 100644 --- a/bin/create-block/templates/block/typescript/save.tsx.mustache +++ b/bin/create-block/templates/block/typescript/save.tsx.mustache @@ -18,8 +18,8 @@ import { useBlockProps } from '@wordpress/block-editor'; */ export default function save() { return ( -- { '{{title}} – hello from the saved content!' } +
+ {'{{title}} – hello from the saved content!'}
); }