Skip to content

Commit

Permalink
Merge 2db78f0 into 64b3d1d
Browse files Browse the repository at this point in the history
  • Loading branch information
sachielxsuo committed Apr 24, 2019
2 parents 64b3d1d + 2db78f0 commit aa2546b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/wepy-cli/src/compile-template.js
Expand Up @@ -311,7 +311,11 @@ export default {
node.setAttribute(paramAttr, p);
});
}
if (prefix)

let match = attr.value.match(/^\{\{\s*(\w+)(\.|\[).*\}\}$/);
let useWxs = match && match[1] && ignores[match[1]];

if (prefix && !useWxs)
attr.value = `${PREFIX}${prefix}${JOIN}` + attr.value;
}
if (attr.name === 'a:for-items' && config.output === 'ant') {
Expand Down

0 comments on commit aa2546b

Please sign in to comment.