freemarker-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charles Goodwin (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FREEMARKER-25) Multiple nest targets
Date Mon, 30 May 2016 16:36:12 GMT

     [ https://issues.apache.org/jira/browse/FREEMARKER-25?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Charles Goodwin updated FREEMARKER-25:
--------------------------------------
    Description: 
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}

  was:
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}


> 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)

Mime
View raw message