Class SourceHtmlBuilder

Build the sources HTML pages

Source : file SourceHtmlBuilder.js at line 40

Constructor

new SourceHtmlBuilder ( )

The constructor

Source : file SourceHtmlBuilder.js at line 143

Public getters and setters

readonly get sourcesCounter : Number

A sources files counter

Source : file SourceHtmlBuilder.js at line 153

Public methods

build ( fileContent, fileName, tagsData )

Build the source html file.

Source : file SourceHtmlBuilder.js at line 162

Parameters

Name Type Description
fileContent String

The file content

fileName String

The file name, including the path since theConfig.destDir

tagsData Array of TagData

An array with the tags to insert in the souce file

Private properties

#fileContent : String

The content of the source file

Source : file SourceHtmlBuilder.js at line 92

#rootPath : String

The path between the html file and theConfig.destDir ( something like '../../../', depending of the folders tree )

Source : file SourceHtmlBuilder.js at line 85

#sourcesCounter : Number

A sources files counter

Source : file SourceHtmlBuilder.js at line 47

Private getters and setters

readonly static get #jsKeywords : Array of String

A list with JS keyword that will be colored in blue in the sources files

Source : file SourceHtmlBuilder.js at line 54

Private methods

#colorizeJSKeywords ( )

Colorize the js keywords in the source file content

Source : file SourceHtmlBuilder.js at line 98

#setClassesLinks ( )

Add the classes links in the source file content

Source : file SourceHtmlBuilder.js at line 111

#setVariablesLinks ( )

Add the variables links in the source file content

Source : file SourceHtmlBuilder.js at line 127