diff --git a/src/handlers/twig.js b/src/handlers/twig.js index e491417..e9d44d0 100644 --- a/src/handlers/twig.js +++ b/src/handlers/twig.js @@ -22,9 +22,9 @@ module.exports = function(env) { return { process: async (task, vars) => { - let { stdout, stderr } = await exec(strtr(env.twig?.cmdFormat ?? ':command :path', { - ':command': env.twig?.cmdPathFull ?? pathJoin(env.root, env.twig?.cmdPath ?? 'tools/render-tpl'), - ':path': task.source, + let { stdout, stderr } = await exec(strtr(env.twig?.cmdFormat ?? '{command} {path}', { + 'command': env.twig?.cmdPathFull ?? pathJoin(env.root, env.twig?.cmdPath ?? 'tools/render-tpl'), + 'path': task.source, })); if(stdout.trim() === '')