okam-build
Version:
The build tool for Okam develop framework
17 lines (13 loc) • 427 B
JavaScript
/**
* @file Transform wx data binding
* :attr="value" -> attr="{{value}}"
* :attr="{a: 3, b: c}" -> attr="{{ {a: 3, b: c} }}"
* @author sparklewhy@gmail.com
*/
;
const transformDataBind = require('../base/data-bind');
module.exports = function (attrs, name, tplOpts, opts, element) {
transformDataBind(attrs, name, tplOpts, Object.assign({
tripleBrace: true
}, opts), element);
};