nl_tokens: / * 9
pl_tokens: function ( module , exports , __webpack_require__ ) { 'use strict' ; var _interopRequireDefault = __webpack_require__ ( 1 ) [ 'default' ] ; exports . __esModule = true ; var _utils = __webpack_require__ ( 5 ) ; var _exception = __webpack_require__ ( 6 ) ; var _exception2 = _interopRequireDefault ( _exception ) ; exports [ 'default' ] = function ( instance ) { instance . registerHelper ( 'each' , function ( context , options ) { if ( ! options ) { throw new _exception2 [ 'default' ] ( 'Must pass iterator to #each' ) ; } var fn = options . fn , inverse = options . inverse , i = 0 , ret = '' , <mask> = undefined , contextPath = undefined ; if ( options . data && options . ids ) { contextPath = _utils . appendContextPath ( options . data . contextPath , options . ids [ 0 ] ) + '.' ; } if ( _utils . isFunction ( context ) ) { context = context . call ( this ) ; } if ( options . data ) { data = _utils . createFrame ( options . data ) ; } function execIteration ( field , index , last ) { if ( data ) { data . key = field ; data . index = index ; data . first = index === 0 ; data . last = ! ! last ; if ( contextPath ) { data . contextPath = contextPath + field ; } } ret = ret + fn ( context [ field ] , { data : data , blockParams : _utils . blockParams ( [ context [ field ] , field ] , [ contextPath + field , null ] ) } ) ; } if ( context && typeof context === 'object' ) { if ( _utils . isArray ( context ) ) { for ( var j = context . length ; i < j ; i ++ ) { if ( i in context ) { execIteration ( i , i , i === context . length - 1 ) ; } } } else { var priorKey = undefined ; for ( var key in context ) { if ( context . hasOwnProperty ( key ) ) { // We're running the iterations one step out of sync so we can detect // the last iteration without have to scan the object twice and create // an itermediate keys array. if ( priorKey !== undefined ) { execIteration ( priorKey , i - 1 ) ; } priorKey = key ; i ++ ; } } if ( priorKey !== undefined ) { execIteration ( priorKey , i - 1 , true ) ; } } } if ( i === 0 ) { ret = inverse ( this ) ; } return ret ; } ) ; } ; module . exports = exports [ 'default' ] ; /***/ }