literal Function

Returns the value of the literal resolved to the current locale and executes the callback. The callback should recieve the argument "data", which contains the response body in "data.content".

Summary

ElementFunction
ReturnsObject

Arguments

nameString[required] The name of the literal.
callbackFunction[required] The callback function.

Example

PageType.literal('hello-world',callback);
CodeMessageLineFile
2count(): Parameter must be an array or an object that implements Countable224/home2/ptorg/public_html/pagetype/content/pages/en/docml.viewer.php