You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Tim Colson (tcolson)" <tc...@cisco.com> on 2005/03/03 23:40:50 UTC
#applyDecorator -- macro with body
Say folks - just noticed this while wandering around in the Confluence
templates...
#applyDecorator ("menupanel" "Security")
<img src="$req.contextPath/images/icons/bullet_creme.gif" height=8
width=8 alt="">
...more html snipped...
#end
It looks like a Velocity macro -- but with body content -- which isn't
standard for Velocity.
I looked at the SiteMesh docs, but only found JSP tag library references
for applyDecorator.
Dug deeper and it seems to be a custom Velocity directive :
ApplyDecoratorDirective.
Deeper still... I found the src in this bug report.
http://jira.opensymphony.com/browse/SIM-112?page=all
I'm wondering, is there a "macro with body content" in the pipeline for
Velocity Core? Seems like a spiffy thing to have.
Timo
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org
Re: #applyDecorator -- macro with body
Posted by Shinobu Kawai <sh...@gmail.com>.
Hi Timo,
> I'm wondering, is there a "macro with body content" in the pipeline for
> Velocity Core? Seems like a spiffy thing to have.
How would one use it?
Best regards,
-- Shinobu
--
Shinobu Kawai <sh...@gmail.com>
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org