src/View/SSViewer.php
public static function fromString($content, $cacheTemplate = null)
    {
        $viewer = SSViewer_FromString::create($content);
        if ($cacheTemplate !== null) {
            $viewer->setCacheTemplate($cacheTemplate);
        }
        return $viewer;
    }
public static function fromString($content, $cacheTemplate = null)
    {
        $viewer = SSViewer_FromString::create($content);
        if ($cacheTemplate !== null) {
            $viewer->setCacheTemplate($cacheTemplate);
        }
        return $viewer;
    }
public static function fromString ( $ content , $ cacheTemplate = null ) { $ viewer = SSViewer_FromString :: create ( $ content ) ; if ( $ cacheTemplate !== null ) { $ viewer -> setCacheTemplate ( $ cacheTemplate ) ; } return $ viewer ; }
Create a template from a string instead of a .ss file

@param string $content The template content
@param bool|void $cacheTemplate Whether or not to cache the template from string
@return SSViewer
Create a template from a string instead of a . ss file