velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Tetlaw <andrew_tet...@bvn.com.au>
Subject Re: Template inheritance
Date Mon, 19 May 2003 21:48:35 GMT
The link to the attachment is at the url below or simply click here:
http://nagoya.apache.org/bugzilla/showattachment.cgi?attach_id=6070

It is a custom directive so in the properties with which you init Velocity 
you have to add:

"userdirective=org.apache.velocity.runtime.directive.Define"

Cheers,
Andrew Tetlaw

Bligh Voller Nield
http://www.bvn.com.au
p: (07) 3251 5778
f: (07) 3852 2544

dh.replies-01@web.de wrote on 19/05/2003 09:31:19 PM:

> Andrew Tetlaw wrote:
> 
> >I do similar with my #define block directive
> >http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19409
> >
> >#define( $body )
> >
> >...
> >
> >#end
> >#parse("MasterPage.vm")
> > 
> >
> Hi Andrew,
> 
> thanks a lot.
> 
> Meanwhile I tried a similar approach using macros. But your #define 
> directive appears more natural to me. How can I get it?
> 
> Cheers
> Dirk
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
> 

> ForwardSourceID:NT0000846A 


<font face="Arial, Helvetica, sans-serif" size="2">
<b>

Please Also Note
</b>This document, including attachments, is only intended for the addressees and may
contain privileged or confidential information. Unauthorised use, copying or distribution
of the document or any part of its contents, is prohibited. If you receive this Email in error
please notify us by return Email or telephone. We will reimburse you for any reasonable expenses
incurred in meeting this request.</font> 


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message