Charles Goodwin created FREEMARKER-25:
-----------------------------------------

             Summary: Multiple nest targets
                 Key: FREEMARKER-25
                 URL: https://issues.apache.org/jira/browse/FREEMARKER-25
             Project: Apache Freemarker
          Issue Type: Wish
          Components: engine
    Affects Versions: 2.3.24
            Reporter: Charles Goodwin


We spend a lot of time getting around the inability to have multiple nest 
targets in our freemarker usage.

For example, defining a table with a custom column header/cells.

The desired feature would work something like:

{noformat}
<#macro MY_TABLE>
   <table>
        <head>
             <column A/>
             <column B/>
             <#nested HEADER>
        </head>
        <body>
             <rowtemplate>
                  <celldef A/>
                  <celldef B/>
                  <#nested>
             </rowtemplate>
         </body>
      </table>
</#macro>
{noformat}

With the end usage being:

{noformat}
<@MY_TABLE>
    <@:HEADER>
         <column C/>
    </@:HEADER>
    
    <celldef C/>
</@MY_TABLE>
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to