Update Handlebars Transformer logic (ReplaceNodeOptions) (#1036)

* Update Handlebars Transformer logic (ReplaceNodeOptions)

* okeee

* EvaluateAndKeep = Evaluate

* fix?

* linux

* _

* tt

* xxx

* fx

* x

* fix test
This commit is contained in:
Stef Heyenrath
2023-12-21 20:02:58 +01:00
committed by GitHub
parent c96d7d31b1
commit 4721b73a16
52 changed files with 418 additions and 1387 deletions

View File

@@ -7,19 +7,16 @@ public enum ReplaceNodeOptions
{
/// <summary>
/// Try to evaluate a templated value.
/// In case this is valid, return the value and if the value can be converted to a primitive type, use that value.
/// In case this is valid, return the value and if the value can be converted to a supported (primitive) type, use that value.
///
/// [Default behaviour]
/// </summary>
EvaluateAndTryToConvert = 0,
/// <summary>
/// Try to evaluate a templated value.
/// In case this is valid, return the value, else fallback to the parse behavior.
/// Parse templated string to a templated string.
/// For example: keep a templated string value (which is always the case) as a string value.
/// </summary>
Evaluate = 1,
/// <summary>
/// Parse templated string to a templated string.
/// (keep a templated string value as string value).
/// </summary>
Parse = 2
EvaluateAndKeep = Evaluate
}