velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastien Chassande-Barrioz <sebastien.chassa...@inrialpes.fr>
Subject macros in other templates
Date Sat, 09 Mar 2002 13:59:50 GMT
hi,

The call to a macro localized in an other template file, does not work.

View of both files:

File1.vm:
#macro ( writeImports )
toto
#end

File2.vm:
#parse ("File2.vm")
#writeImports()


The "#writeImports()" string is written in the result intead of the 
"toto" string. I tried to use the #include command instead of #parse but 
  in this case the text of macro is written and not the result.

Do you have some suggestions to resolve my problem ?

regards,
Seb
-- 
Chassande-Barrioz Sebastien
INRIALPES - SIRAC/SARDES Team - ObjectWeb initiative
Mail job : sebastien.chassande@inrialpes.fr
Phone : 04.76.61.55.16


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


Mime
View raw message