import assert from 'node:assert/strict'; import { readFile } from 'node:fs/promises'; import vm from 'node:vm'; const template = await readFile( new URL('../resources/views/venix/admin/shop/offer_form_js.tpl', import.meta.url), 'utf8', ); const script = template.match( /\{literal\}\s*