You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Christoph Reck (JIRA)" <de...@velocity.apache.org> on 2007/01/03 09:56:27 UTC
[jira] Commented: (VELOCITY-149) allow for deeply nested macro
calls
[ https://issues.apache.org/jira/browse/VELOCITY-149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12461924 ]
Christoph Reck commented on VELOCITY-149:
-----------------------------------------
The multi-line directives of (upcoming) 1.5 release and the better quote-escaping ("using a doubled "" quote" in the quoted string"), seems to make this request obsolete.
The following looks akward to me:
#macro1("foo-#macro2("bar")-baz")
Can someone tell me in which programming language this would be possible?
Going with normal "programming" practices, you would unwrap this into:
#set( $bar = "#macro2('bar')" )
#macro1("foo-${bar}-baz")
OTOH, this requests seems related to http://www.mail-archive.com/velocity-dev@jakarta.apache.org/msg11751.html which could be more useful than the above akward assembly.
> allow for deeply nested macro calls
> -----------------------------------
>
> Key: VELOCITY-149
> URL: https://issues.apache.org/jira/browse/VELOCITY-149
> Project: Velocity
> Issue Type: Improvement
> Components: Engine
> Affects Versions: 1.3-rc1
> Environment: Operating System: All
> Platform: All
> Reporter: Ralf Hauser
> Priority: Minor
> Fix For: 1.5
>
>
> currently, it appears that more than two levels get almost unfeasible.
> see also http://sourceforge.net/mailarchive/message.php?msg_id=4015929
> Being able to do multi-line string literals or macro arguments is probably a
> related idea (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17803)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org