nested macros behaviour

Ludwig Hammel <[email protected]>
Newsgroups gmane.comp.java.helma.general
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.