Skip to content

Commit

Permalink
feat(okam-build): keep :key attribute for swan app
Browse files Browse the repository at this point in the history
  • Loading branch information
wuhy committed Jan 15, 2019
1 parent c9ab99a commit 5ff8855
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@
*/

module.exports = function (attrs, name, tplOpts) {
let {logger, file} = tplOpts;
logger.warn(`${file.path}, swan is not support with :key`);
// let {logger, file} = tplOpts;
// logger.warn(`${file.path}, swan is not support with :key`);
// delete attrs[name];

let newAttr = name.substr(1);
let value = attrs[name];
attrs[newAttr] = `{{${value}}}`;
delete attrs[name];
};

0 comments on commit 5ff8855

Please sign in to comment.