PageRenderer Class
Retrieves the necessary data as well as prepares the layout so a view loader can complete the render of content
Constructor
PageRenderer
(
-
context
Parameters:
-
context
Object
Methods
getContentLinkPrefix
()
String
Returns:
String:
getLayout
(
String
-
content
Retrieves the layout from the content object. Provides a mechanism to allow for layout parameter to have any name.
Parameters:
-
content
Object
Returns:
String:
setLayout
(
-
content
-
layout
A workaround to allow this prototype to operate on articles and pages. The layout parameter is not the same. Until we introduce breaking changes this will have to do.
Parameters:
-
content
Object -
layout
String