Version: current

# Class SSViewer_FromString

Special SSViewer that will process a template passed as a string, rather than a filename.

  SSViewer
  SSViewer_FromString

Package: sapphire\view
Located at sapphire/core/SSViewer.php

## Methods summary

`public` | # `__construct( string|array $content )` Pass the SilverStripe template to be used. Pass the SilverStripe template to be used. #### Parameters $content string|array $templateList If passed as a string with .ss extension, used as the "main" template #### Overrides `SSViewer::__construct`
`public` | # `process( mixed $item, mixed $cache = null )` The process() method handles the "meat" of the template processing. The process() method handles the "meat" of the template processing. #### Overrides `SSViewer::process`

### Methods inherited from SSViewer

`current_custom_theme()`, `current_theme()`, `dontRewriteHashlinks()`, `exists()`, `flush_template_cache()`, `fromString()`, `getTemplateContent()`, `getTemplateFile()`, `getTemplateFileByType()`, `get_base_tag()`, `get_source_file_comments()`, `hasTemplate()`, `parseTemplateContent()`, `setOption()`, `setTemplateFile()`, `set_source_file_comments()`, `set_theme()`, `templates()`, `topLevel()`

### Magic methods summary

## Properties summary

`protected mixed` | $content | #

### Properties inherited from SSViewer

`$current_custom_theme`, `$current_theme`, `$options`, `$rewriteHashlinks`, `$source_file_comments`, `$topLevel`

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -