nl_tokens: Transform the given template element
pl_tokens: function transform ( transformers , element , tplOpts , options ) { let { config } = tplOpts ; let onTag = config . onTag ; if ( onTag ) { onTag ( element . <mask> ) ; } // transform element first let transformer = findMatchElemTransformer ( transformers . element , element ) ; transformer && transformer . call ( this , element , tplOpts , options ) ; if ( element . removed ) { return ; } // transform element attributes let { attribs : attrs } = element ; attrs && Object . keys ( attrs ) . forEach ( k => { transformer = findMatchAttrTransformer ( transformers . attribute , k ) ; if ( transformer ) { transformer . call ( this , attrs , k , tplOpts , options , element ) ; if ( transformer . type === 'for' ) { element . hasForLoop = true ; } } } ) ; }