是否有Grails的GSP的方式来替换以下带有内容的Grails GSP外部模板?
<tmpl:/templates/header />
<!-- tmpl namespace call is equivalent to <g:render template="/templates/header" /> -->
<!-- definition of inner content -->
<tmpl:/templates/footer />
与外部模板?从本质上讲,这是一种进口的包装外模板,
<outertemplate:templatename>
<!-- header will be rendered from outer template -->
<!-- definition of inner content -->
<!-- footer will be rendered from outer template -->
</outertemplate:templatename>
和外模板被一些沿着
<!-- definition of header content -->
<!-- placeholder or attr for inner content -->
<!-- definition of footer content -->
封装在一个模板与两个包裹内容系定义。 IIRC在JSF下有办法做到这一点,但我无法在GSP下找到相应的等价物。
我不确定你在问什么。模板可以呈现模板。 – 2013-03-26 21:29:59
你能详细解释一下你的问题吗? – 2013-03-26 21:32:14
@詹姆斯麦克马洪,你的问题太明确,你试图做的明显重构。我们需要知道tmpl tagLib先做了什么。 – rimero 2013-03-26 22:11:53