diff --git a/build/engines.js b/build/engines.js index 9f9d9f4..2b81c77 100644 --- a/build/engines.js +++ b/build/engines.js @@ -251,11 +251,13 @@ class Injectables { const { hash, env, resolve: rval } = args.pop(); const local = rval('@root.this.local'); const tpath = path.join(local.root, 'svg', name + '.svg'); + if (hash.size && String(hash.size).match(/^\d+$/)) { + hash.size = hash.size + 'px'; + } const frame = handybars.makeContext(hash, env); - try { const contents = self._template(tpath, (s) => - handybars(`${s}`), + handybars(`${s}`), )(frame); return handybars.safe(contents);