class Pages \ PageRenderer



Method Summary

Name Description
addJavascript($css) Pushes this Javascript location (relative to the user) onto the back of the include queue.
addStylesheet($css) Pushes this stylesheet location (relative to the user) onto the back of the include queue.
addTemplatesLocation($dir) Pushes this template location onto the front of the include queue.
footer($arguments = array())
header($arguments = array())
includeJavascripts()
includeStylesheets()
requireTemplate($template, $arguments = array()) Render the given template.
setHamlOptions($options)
setTemplatesLocation($dir) Set this template location as the _only_ location for templates.

static function addJavascript($css)

Pushes this Javascript location (relative to the user) onto the back of the include queue.

Parameters:
$css - a relative (e.g. with url_for()) or absolute (e.g. JQuery CDN) path

static function addStylesheet($css)

Pushes this stylesheet location (relative to the user) onto the back of the include queue.

Parameters:
$css - a relative (e.g. with url_for()) or absolute (e.g. JQuery CDN) path

static function addTemplatesLocation($dir)

Pushes this template location onto the front of the include queue.


static function footer($arguments = array())

Defaults:
arguments = array()

static function header($arguments = array())

Defaults:
arguments = array()

static function includeJavascripts()


static function includeStylesheets()


static function requireTemplate($template, $arguments = array())

Render the given template.

Searches for templates within each template directory, with the following search order: .php, .haml.php, .haml.

Defaults:
arguments = array()

static function setHamlOptions($options)


static function setTemplatesLocation($dir)

Set this template location as the _only_ location for templates.