question about complex macro parameters

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

question about complex macro parameters

Joe Hudson-3

I’ve been away from the lists for a while and was wondering if anything has ever happened with the development of using complex macro parameters?  (Was a topic of discussion on the list a while ago)

 

For example (just to get the point across… not to be taken as a specification):

 

[@tab]

            [*page title=”Page 1”]

                        This is page 1 text

            [/*

            [*page title=”Page 2”]

                        This is page 2 text

            [/*

[/@]

 

Note: * might designate a complex macro parameter

 

[#macro tab]

            <div class=”tab”>

            [#list tab.page as page]

                        <div class=”page”>

                                    <div class=”title”>${page.title}</div>

                                    ${page.nested} or maybe [#nested page]

                        </div>

            [/#list]

</div>

[/#macro]

 

Thanks.

 

Joe


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.17/730 - Release Date: 3/22/2007 7:44 AM


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
FreeMarker-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/freemarker-devel
Reply | Threaded
Open this post in threaded view
|

Re: question about complex macro parameters

Daniel Dekany

Nothing... And frankly I doubt it will happen in this project in the foreseeable future. It's a quite hard topic and I don't really feel its importance is recognized by Jonathan or Attila.


Thursday, March 22, 2007, 4:06:17 PM, Joe Hudson wrote:


>

I’ve been away from the lists for a while and was wondering if anything has ever happened with the development of using complex macro parameters?  (Was a topic of discussion on the list a while ago)

 

For example (just to get the point across… not to be taken as a specification):

 

[@tab]

            [*page title=”Page 1”]

                        This is page 1 text

            [/*

            [*page title=”Page 2”]

                        This is page 2 text

            [/*

[/@]

 

Note: * might designate a complex macro parameter

 

[#macro tab]

            <div class=”tab”>

            [#list tab.page as page]

                        <div class=”page”>

                                    <div class=”title”>${page.title}</div>

                                    ${page.nested} or maybe [#nested page]

                        </div>

            [/#list]

</div>

[/#macro]

 

Thanks.

 

Joe


-- 

Best regards,

 Daniel Dekany


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
FreeMarker-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/freemarker-devel