During FragmentContext initialization static data (prefixed with data-const- is now passed stored into the context. Prefix used for these properties is _const. Therefore data attribute data-const-foo can be referenced from handlebars as {{_const.foo}]
Motivation and Context
Better code organization - and solution for some CMS systems that are not able to process the tags inside the fragment.
Static fragment data passed to the handlebars.
Description
During FragmentContext initialization static data (prefixed with
data-const-
is now passed stored into the context. Prefix used for these properties is_const
. Therefore data attributedata-const-foo
can be referenced from handlebars as{{_const.foo}]
Motivation and Context
Better code organization - and solution for some CMS systems that are not able to process the tags inside the fragment.
Implementation of https://github.com/Cognifide/knotx/issues/391
Screenshots (if appropriate):
Types of changes
Checklist:
I hereby agree to the terms of the Knot.x Contributor License Agreement.