public static function wrap($body, $vars = [])
	{
		if(isset(static::$wrap))
		{
			if($body instanceof \SeanMorris\Theme\View)
			{
				$body = $body->render();
			}

			foreach(static::$wrap as $wrapper)
			{
				$body = new $wrapper(['body' => $body] + $vars);
			}
		}

		return $body;
	}
public static function wrap($body, $vars = [])
	{
		if(isset(static::$wrap))
		{
			if($body instanceof \SeanMorris\Theme\View)
			{
				$body = $body->render();
			}

			foreach(static::$wrap as $wrapper)
			{
				$body = new $wrapper(['body' => $body] + $vars);
			}
		}

		return $body;
	}
public static function wrap ( $ body , $ vars = [ ] ) { if ( isset ( static :: $ wrap ) ) { if ( $ body instanceof \ SeanMorris \ Theme \ View ) { $ body = $ body -> render ( ) ; } foreach ( static :: $ wrap as $ wrapper ) { $ body = new $ wrapper ( [ 'body' => $ body ] + $ vars ) ; } } return $ body ; }
Wrap text with the default trim.

@param string $body Value to be wrapped.

@return object Wrap view with body.
Wrap text with the default trim .