Hello,

Sometime ago, I suggested a way of defining reusable blocks of text using a macro. See http://marc.theaimsgroup.com/?l=velocity-user&m=99834239229475&w=2.

However, the better way to do with would be to implement a new directive.

-Bill

Claude Brisson wrote:
I think it's a great little tool, I've decided to use it.

Nevertheless, I 'm still facing a little problem.

What if some screens want to specify a part of the header, and what if this part, might it be a javascript section for instance,
cannot be specified using a #set directive ?

i.e. the template part is easy, you'll find sthing like :
<head>
<title>$page_title</title>
$screen_header
</head>
...


but in the screen template itself, I'm restricted to the #set directive and cannot do sthing like :

#header()
<javascript>
...
</javascript>
#end

So I was wondering if someone had already encountered the need of a set directive for blocks, sthing like :

#block_set($screen_header)
<javascript>
...
</javascript>

#end

It would solve my problem.

CloD

----- Original Message -----
From: "Tim Colson" <[EMAIL PROTECTED]>
To: "'Velocity Developers List'" <[EMAIL PROTECTED]>
Sent: jeudi 16 janvier 2003 02:34
Subject: RE: [VELTOOLS] VelocityLayoutServlet




that said, both the class and the readme are attached.  i
personally feel this class would be a good addition to the
velocity-tools-view library. there have been, after all, a
number of requests in the past for this functionality.
+1


if nothing else, here it is for anyone who wants it.  (oh,
and feedback is quite welcome!)
Thanks Nathan. I think this new version looks great and is destined to
replace my hacked up layout servlet.  :-)

Cheers,
Timo

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to