``nglayouts_render_rule_group`` =============================== .. note:: Available only in Enterprise Edition This function is used to render a rule group: .. code-block:: twig {{ nglayouts_render_rule_group(group) }} This will render the provided rule group in the view context of the template from which you called the function or in the ``default`` view context if the calling template is not rendered by the Netgen Layouts view layer. You can transfer a list of custom parameters to the function, which will be injected as variables into the rule group template: .. code-block:: twig {# my.html.twig #} {{ nglayouts_render_rule_group(group, {'the_answer': 42}) }} {# group.html.twig #} {{ the_answer }} Finally, you can render the rule group with a view context different from the current one: .. code-block:: twig {{ nglayouts_render_rule_group(group, {}, 'my_context') }}