new Code()
MEMBERS
-
includeEnd___MyConditionalCodeTag :object
-
Conditional code closer. Use this tag at the end of a section of code that will only be included when the associated conditional code tag is enabled in the given configuration.
Example:
console.log('this is always happening'); this.includeIf___MyConditionalCodeTag; console.log('this is only happening when the MyConditionalCodeTag tag is included in the conditionalCodeTagsIncluded array for the current configuration.'); this.includeEnd___MyConditionalCodeTag;
-
includeEnd___published :object
-
Conditional code closer. Use this tag at the end of a section of code that will only be included when the project is published.
Example:
console.log('this is always happening'); CODE.includeIf___published; console.log('this is only happening when the project is published'); CODE.includeEnd___published;
-
includeEnd___unpublished :object
-
Conditional code closer. Use this tag at the end of a section of code that will only be included when the project is not published.
Example:
console.log('this is always happening'); CODE.includeIf___unpublished; console.log('this is only happening when the project is not published'); CODE.includeEnd___unpublished;
-
includeIf___MyConditionalCodeTag :object
-
Conditional code opener. Use this tag at the beginning of a section of code that will only be included when the associated conditional code tag is enabled in the given configuration.
Example:
console.log('this is always happening'); this.includeIf___MyConditionalCodeTag; console.log('this is only happening when the MyConditionalCodeTag tag is included in the conditionalCodeTagsIncluded array for the current configuration.'); this.includeEnd___MyConditionalCodeTag;
-
includeIf___published :object
-
Conditional code opener. Use this tag at the beginning of a section of code that will only be included when the project is published.
-
includeIf___unpublished :object
-
Conditional code opener. Use this tag at the beginning of a section of code that will only be included when the project is not published.
Example:
console.log('this is always happening'); CODE.includeIf___unpublished; console.log('this is only happening when the project is not published'); CODE.includeEnd___unpublished;
-
preserveEnd :object
-
Preservation closer. Use this tag at the end of a block of code to exempt it from all forms of code formatting including minification, whitespace removal, and comment removal.
-
preserveStart :object
-
Preservation opener. Use this tag at the beginning of a block of code to exempt it from all forms of code formatting including minification, whitespace removal, and comment removal.
METHODS
-
includeFile()
-
Function that inserts Javascript code from another file at the location of the function call.