PageSource

pageRegistry~ PageSource

Class that keeps the methods and data related to the page's source code.

Constructor

new PageSource(page)

Source:

Create a comment's source object.

Parameters:
Name Type Description
page module:pageRegistry.Page

Page.

Methods

modifyContext(options) → {object}

Source:

Modify the page code string in accordance with an action. The 'addSection' action is presumed.

Parameters:
Name Type Description
options object
Properties
Name Type Description
commentCode string

Comment code, including trailing newlines and the signature.

commentForm CommentForm

Comment form that has the code.

Returns:
Type
object