v3.3.0
New Features
- Enhanced
resolveValueto support nested properties with dot notation. - Updated
evaluateConditionto handle logical operators and simple conditions. - Refactored
evaluateSimpleExpressionandevaluateComparisonfor accurate condition evaluations. - Added
fileBaseNameproperty toparseFrontmatterreturn object.
Details
This release introduces several improvements and new features to enhance the functionality and flexibility of the template engine and frontmatter parsing.
Changes
-
Enhance
resolveValueto support nested properties with dot notation- Updated the
resolveValuefunction to handle nested keys using dot notation. - Ensured proper value resolution from data objects for nested properties.
- Updated the
-
Update
evaluateConditionto handle logical operators and simple conditions- Modified
evaluateConditionto distinguish between logical expressions and simple truthy checks. - Integrated
resolveValuefor simple condition evaluations.
- Modified
-
Refactor
evaluateSimpleExpressionandevaluateComparisonfor accurate condition evaluations- Enhanced
evaluateSimpleExpressionto evaluate conditions with logical operators. - Updated
evaluateComparisonto perform comparisons using resolved values. - Ensured consistent and correct evaluation of expressions.
- Enhanced
-
Add
fileBaseNameproperty toparseFrontmatterreturn object- Added
fileBaseNameto the returned object from theparseFrontmatterfunction. - This property contains the base name of the file without its extension.
- Added
This release brings significant enhancements to the way nested properties and logical conditions expressions are evaluated in the template engine (see docs), as well as improvements to the frontmatter parsing functionality. As always, your feedback and contributions are most welcome. Thank you for using LiteNode!