<th:block th:if="${not #lists.isEmpty(widgets)}" th:fragment="aside(widgets)"
          th:each="widget_data,iterStat : ${widgets}">
    <th:block th:unless="${widget_data.widget=='custom_html'}">
        <th:block th:replace="~{'modules/widgets/aside/'+ ${widget_data.widget}}" />
    </th:block>
    <th:block th:if="${widget_data.widget=='custom_html'}">
        <th:block th:replace="~{modules/widgets/aside/custom_html :: custom_html(${widget_data})}" />
    </th:block>
</th:block>