protected function prepareContextStack($context = null)
    {
        $stack = new Mustache_Context();

        $helpers = $this->mustache->getHelpers();
        if (!$helpers->isEmpty()) {
            $stack->push($helpers);
        }

        if (!empty($context)) {
            $stack->push($context);
        }

        return $stack;
    }
protected function prepareContextStack($context = null)
    {
        $stack = new Mustache_Context();

        $helpers = $this->mustache->getHelpers();
        if (!$helpers->isEmpty()) {
            $stack->push($helpers);
        }

        if (!empty($context)) {
            $stack->push($context);
        }

        return $stack;
    }
protected function prepareContextStack ( $ context = null ) { $ stack = new Mustache_Context ( ) ; $ helpers = $ this -> mustache -> getHelpers ( ) ; if ( ! $ helpers -> isEmpty ( ) ) { $ stack -> push ( $ helpers ) ; } if ( ! empty ( $ context ) ) { $ stack -> push ( $ context ) ; } return $ stack ; }
Helper method to prepare the Context stack.

Adds the Mustache HelperCollection to the stack's top context frame if helpers are present.

@param mixed $context Optional first context frame (default: null)

@return Mustache_Context
Helper method to prepare the Context stack .