okam-build
Version:
The build tool for Okam develop framework
18 lines (14 loc) • 442 B
JavaScript
/**
* @file Transform toutiao for syntax
* @author sparklewhy@gmail.com
*/
;
const transformFor = require('../base/for');
module.exports = function (attrs, name, tplOpts, opts, element) {
transformFor(attrs, name, tplOpts, Object.assign({
forDirectionName: 'tt:for',
forItemDirectiveName: 'tt:for-item',
forIndexDirectiveName: 'tt:for-index',
tripleBrace: true
}, opts), element);
};