public function setRouteOptions($options)
    {
        if (is_string($options)) {
            $options = json_decode($options, true);
        }

        $this->routeOptions = $options;

        return $this;
    }
public function setRouteOptions($options)
    {
        if (is_string($options)) {
            $options = json_decode($options, true);
        }

        $this->routeOptions = $options;

        return $this;
    }
public function setRouteOptions ( $ options ) { if ( is_string ( $ options ) ) { $ options = json_decode ( $ options , true ) ; } $ this -> routeOptions = $ options ; return $ this ; }
Customize the template's options.

@param  mixed $options Template options.
@return self
Customize the template s options .