...
Code Block |
---|
div('class': 'container') { mkp.yieldUnescaped(ctx.content('my_cms_include')); } |
Code Block |
---|
div('class': 'container') { mkp.yieldUnescaped(ctx.dynamicContent('my_cms_include', ['p1':'value1', 'p2object': myObject])); } |
SFG implementation does not require any java changes and can just include content either plain or dynamic right in the template, which results in more flexible and faster implementation of storefront changes and theme development in general.
...