cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <lgaw...@mobilebox.pl>
Subject cocoon-template incompatible change
Date Fri, 24 Aug 2007 15:06:38 GMT
Hello,

previously (all my software bases on this behaviour) if a variable was 
declared at imported template it was available further on:

<!-- macros.jx declares foo variable -->
<jx:import uri="view/macros.jx"/>
<tags>${foo}</tags>

previous versions showed: <tags>bar</tags>
currently the scope changed and the template produces: <tags></tags>

this produces the expected result:
<!-- lets declare foo ourselves -->
<jx:set var="foo" value="..."/>
<!-- macros.jx modifies the tags variable -->
<jx:import uri="view/macros.jx"/>
<!-- works as expected -->
<tags>${foo}</tags>

was this intentional?

-- 
Leszek Gawron                         http://www.mobilebox.pl/krs.html
CTO at MobileBox Ltd.

Mime
View raw message