Modules§
Structs§
- Camelcase
Helper - Returns the camel case version of the string
- Clear
Helper - Clear a value in the key/value store
- Debug
CtxHelper - Does not render anything but outputs the internal handlebars contexts to the commad line
- Debug
Helper - A debug helper that output a json representation of input parameters
- Distinctive
Helper - Execute template if the first argument is equal to any other argument, otherwise execute the inverse (all arguments are converted to string and case insensitive compared)
- GetHelper
- Gets a value from the key/value store
- Global
Parameter Helper - Gets a value from the global parameters
(those key=value’s would be provided as parameters of
codegenr
execution) - Hex
- IfArray
Contains Helper - Write the template if the second argument is found in the array passed as first argument (values are compared with string insensitive comparison) (Pas completement fonctionnelle)
- IfEmpty
Helper - Call the template if an empty or whitespaces string is passed as parameter
- IfEquals
Helper - Execute template if the first argument is equal to any other argument, otherwise execute the inverse (all arguments are converted to string and case insensitive compared)
- IfGet
Helper - Sets a value in the key/value store and clear it at the end of the block
- IfNot
Empty Helper - Call the template if a non empty or whitespaces string is passed as parameter, or any other non null value
- IfNot
Equals Helper - Execute template if the first argument is not equal to all other arguments, otherwise execute the inverse (all arguments are converted to string and case insensitive compared)
- IsOApi3
Param Required Helper - Returns true is the current context is an open api 3 required parameter.
- IsOApi3
Prop Required Helper - Returns true is the current context is an open api 3 required component property, false otherwise
- Json
Helper - Get the json representation of the first argument passed. If a second argument is true, the json is beautyfied
- Lowercase
First Letter Helper - Returns a string with the first letter in Lowercase
- Lowercase
Helper - Returns the lowercase version of the string in argument
- NoEmpty
Lines Helper - Removes empty lines from the block
- OneLine
Helper - Trim end of a block output (all arguments are converted to string and case insensitive compared)
- Pascalcase
Helper - Returns the pascal case version of the string
- Regex
Extract Helper - Extract and transform a list of values with regex.
- Regex
Transform Helper - Extract and transform a list of values.
- SetHelper
- Sets a value in the key/value store
see
GetHelper
for more examples - Snakecase
Helper - Returns the snake case version of the string
- Split
GetFirst Helper - Return the first part of a String splited by a definable parameter (‘/’ by default)
- Split
GetLast Helper - Return the last value of a String splited by a definable parameter (‘/’ by default)
- Start
With Helper - Determines whether the beginning of the second argumentmatches the second one
- Trim
Block EndHelper - Trim end of a block output (all arguments are converted to string and case insensitive compared)
- Trim
Block Helper - Trim start and end of a block output (all arguments are converted to string and case insensitive compared)
- Trim
Block Start Helper - Trim start of a block output (all arguments are converted to string and case insensitive compared)
- Trim
EndHelper - Return a string trim only at the end by a definable parameter (’ ’ by default)
- Trim
Helper - Returns a string slice with leading and trailing whitespace removed.
- Trim
Start Helper - Return a string trim only at the beggining by a definable parameter (’ ’ by default)
- Uppercase
First Letter Helper - Returns a string with the first letter in Uppercase
- Uppercase
Helper - Returns the uppercase version of the string in argument
- With
Matching Helper - Execute the inner template with the matching parameter, when matching key is equal to the first parameter {{#with_matching some_value matching_key1 context1 mateching_key2 context2 … }} Render the inverse template if no matching key was found
- With
SetHelper - Sets a value in the key/value store and clear it at the end of the block
Enums§
Constants§
- CAMEL_
CASE_ HELPER - CLEAR_
HELPER - DEBUG
- DEBUG_
CTX - DISTINCTIVE
- EACH_
WITH_ SORT_ HELPER - GET_
HELPER - GLOBAL_
PARAMETERS_ HELPER - HEX
- IF_
ARRAY_ CONTAINS - IF_
EMPTY_ HELPER - IF_
EQUALS_ HELPER - IF_
NOT_ EMPTY_ HELPER - IF_
NOT_ EQUALS_ HELPER - IF_
SET_ HELPER - IS_
OAPI3_ PARAM_ REQUIRED - IS_
OAPI3_ PROP_ REQUIRED - JSON_
HELPER - LOWERCASE_
FIRST_ LETTER_ HELPER - LOWERCASE_
HELPER - NO_
EMPTY_ LINES_ HELPER - ONE_
LINE_ HELPER - PASCAL_
CASE_ HELPER - REGEX_
EXTRACT_ HELPER - REGEX_
TRANSFORM_ HELPER - SET_
HELPER - SNAKE_
CASE_ HELPER - SPLIT_
GET_ FIRST_ HELPER - SPLIT_
GET_ LAST_ HELPER - START_
WITH_ HELPER - TRIM_
BLOCK_ END_ HELPER - TRIM_
BLOCK_ HELPER - TRIM_
BLOCK_ START_ HELPER - TRIM_
END_ HELPER - TRIM_
HELPER - TRIM_
START_ HELPER - UPPERCASE_
FIRST_ LETTER_ HELPER - UPPERCASE_
HELPER - WITH_
MATCHING_ HELPER - WITH_
SET_ HELPER
Functions§
- exec_
template - exec_
template_ with_ global_ params - handlebars_
setup - hex
- Return the hexadecimal representation of the integer value