Namespaces

Classes

Defines an extra set of basic methods that can be used in templates that are not defined on sub-classes of ModelData.

Parses template files with an *.ss file extension, or strings representing templates in that format.

This is the parser for the SilverStripe template language. It gets called on a string and uses a php-peg parser to match that string against the language structure, building up the PHP code to execute that structure as it parses

This tracks the current scope for an SSViewer instance. It has three goals:

  • Handle entering & leaving sub-scopes in loops and withs
  • Track Up and Top
  • (As a side effect) Inject data that needs to be available globally (used to live in ModelData)

Interfaces

Interface that is implemented by any classes that want to expose a method that can be called in any scope in a template that returns values dependent on the state of the iterator of the current scope.

This interface needs to be implemented by any template parser that is used in SSViewer