WM.org down? - somebody pls remind me about recursion
"Marc Palmer" <[email protected]> Fri, 29 Jul 2005 11:12:08 +0100
| Newsgroups | gmane.comp.java.webmacro.user |
|---|---|
| Message-ID | <[email protected]> |
Hi guys, I can't reach webmacro.org here - it's resolving but timing out. Eric? Anyway, can somebody give me a bit of clarity on WM recursion - I've forgotten the details. Basically I am recursively including a template to render a tree. However the included template is of course trashing the variables in the "outer" context. Is the solution to this to use #eval or #templet? Something that is part of WM core is preferred - whereby I can pass in certain values but the included template fragment gets its own Context. I'm using my WM JSP taglib code and it's working well "in anger" here (literally - the JSP pissed me off so much and caused so much ugliness to do this recursive rendering, so now we have a JSP/WM hybrid). I can "push" the sensitive variables to temp vars before the include and "pop" them off after but that is ugly indeed. Cheers ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf