goja-web/src/main/java/goja/mvc/render/ftl/kit/DirectiveKit.java
public static void setTopBodyForParentBody(TemplateDirectiveBodyOverrideWraper topBody,
                                               TemplateDirectiveBodyOverrideWraper overrideBody) {
        TemplateDirectiveBodyOverrideWraper parent = overrideBody;
        while (parent.parentBody != null) {
            parent = parent.parentBody;
        }
        parent.parentBody = topBody;
    }
public static void setTopBodyForParentBody(TemplateDirectiveBodyOverrideWraper topBody,
                                               TemplateDirectiveBodyOverrideWraper overrideBody) {
        TemplateDirectiveBodyOverrideWraper parent = overrideBody;
        while (parent.parentBody != null) {
            parent = parent.parentBody;
        }
        parent.parentBody = topBody;
    }
public static void setTopBodyForParentBody ( TemplateDirectiveBodyOverrideWraper topBody , TemplateDirectiveBodyOverrideWraper overrideBody ) { TemplateDirectiveBodyOverrideWraper parent = overrideBody ; while ( parent . parentBody != null ) { parent = parent . parentBody ; } parent . parentBody = topBody ; }
对指定的Body的渲染器，指定其父亲的内容区域

@param topBody      内容渲染器
@param overrideBody 需要覆盖的内容渲染器
对指定的Body的渲染器，指定其父亲的内容区域