[Helma-user] nested macros behaviour

Ludwig Hammel ludwig.hammel at knallgrau.at
Mon May 21 19:17:12 CEST 2007


hi!

I just stumbled across strange rendering behaviour when using nested  
macros like this:
<% mymacro value=<% othermacro prefix="\"" suffix="\"" %> %>

--

function other_macro(param) {
	res.write("huhu");
}

function mymacro(param){
	res.write("<input type=text value=\"" + param.text + "\" >");
}

the above won't work as long as i I don't change the res.write(foo)  
line to a return(foo).
The output of the inner macro gets written to the output and then the  
outer macro's output
is this behaviour intentional? ( bug or a feature? )

regards
Ludwig


--
--
Ludwig Hammel
Developer
--------------------------------------
knallgrau new media solutions gmbh
pesslgasse 7|1, A-1170 wien
phone: +43 - 1 - 522 76 37
fax: +43 - 1 - 522 76 38




More information about the Helma-user mailing list