【发布时间】:2011-01-30 03:54:03
【问题描述】:
我有一些我想使用的通用结构,我需要将它嵌套在<g:each /> 中。语义解决方案似乎是创建一个 taglib,但我宁愿编写 GSP 代码来构建结构,因为它更易于阅读/维护。
基本上,我需要这个:
<g:each ...>
//Somehow include a GSP that takes parameter "datastructure1"
//Again with "datastructure2"
</g:each>
GSP 包含需要参数,但它不能嵌套在 <g:each /> 中。我在找什么?
【问题讨论】: