public function addHelper($name, $helper)
    {
        if ($this->mustache !== null) {
            throw new RuntimeException(
                'Can not add helper to Mustache engine: the engine has already been initialized.'
            );
        }

        $this->helpers[$name] = $helper;

        return $this;
    }
public function addHelper($name, $helper)
    {
        if ($this->mustache !== null) {
            throw new RuntimeException(
                'Can not add helper to Mustache engine: the engine has already been initialized.'
            );
        }

        $this->helpers[$name] = $helper;

        return $this;
    }
public function addHelper ( $ name , $ helper ) { if ( $ this -> mustache !== null ) { throw new RuntimeException ( 'Can not add helper to Mustache engine: the engine has already been initialized.' ) ; } $ this -> helpers [ $ name ] = $ helper ; return $ this ; }
Add a helper.

@param  string $name   The tag name.
@param  mixed  $helper The tag value.
@throws RuntimeException If the mustache engine was already initialized.
@return MustacheEngine Chainable
Add a helper .