|
|
@ -46,6 +46,9 @@ const HELPERS = [ |
|
|
}), |
|
|
}), |
|
|
// adds a note for post-processor
|
|
|
// adds a note for post-processor
|
|
|
new Helper(HelperFunctionNames.LITERAL, value => { |
|
|
new Helper(HelperFunctionNames.LITERAL, value => { |
|
|
|
|
|
if (value === undefined) { |
|
|
|
|
|
return "" |
|
|
|
|
|
} |
|
|
const type = typeof value |
|
|
const type = typeof value |
|
|
const outputVal = type === "object" ? JSON.stringify(value) : value |
|
|
const outputVal = type === "object" ? JSON.stringify(value) : value |
|
|
return `{{${LITERAL_MARKER} ${type}-${outputVal}}}` |
|
|
return `{{${LITERAL_MARKER} ${type}-${outputVal}}}` |
|
|
|