nl_tokens: 处理代码库 : if foreach macro
pl_tokens: function ( block ) { var ast = <mask> [ 0 ] ; var ret = '' ; switch ( ast . type ) { case 'if' : ret = this . getBlockIf ( block ) ; break ; case 'foreach' : ret = this . getBlockEach ( block ) ; break ; case 'macro' : this . setBlockMacro ( block ) ; break ; case 'noescape' : ret = this . _render ( block . slice ( 1 ) ) ; break ; case 'define' : this . setBlockDefine ( block ) ; break ; case 'macro_body' : ret = this . getMacroBody ( block ) ; break ; default : ret = this . _render ( block ) ; } return ret || '' ; }