velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davide Mora <d_m...@yahoo.com>
Subject #parse()/#macro() problems
Date Tue, 27 Mar 2001 14:06:31 GMT
Hi!

i'm trying to include a common macro file in my
templates, for show you the problem i changed the
"app_example1".

I did this:

-- macros.vm -------
/* MACROS INCLUDED */
#macro (test $d)
 This is $d
#end
#test("inside!")
--------------------

-- example.vm -------
#parse("macros.vm")
#test("a bug ?")
#set( $this = "Velocity")
$this is great!
--------------------

-- output ----------
/* MACROS INCLUDED */
This is inside!
#test("a bug ?")
......
--------------------

i'm doing something wrong or it's a bug?
Davide

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/?.refer=text

Mime
View raw message