Do not automatically make object variables visible in templates.
1.1 --- a/lib/woof/controller.tcl Wed Nov 11 17:22:28 2009 +0530
1.2 +++ b/lib/woof/controller.tcl Wed Nov 11 20:48:35 2009 +0530
1.3 @@ -632,11 +632,13 @@
1.4 }
1.5
1.6 # The page get layout will result in execution of the template
1.7 - # processing code in this context. We want to make
1.8 - # all instance variables visible to rendering code without additional
1.9 - # declarations in the templates. TBD - do we really want to make
1.10 - # them visible? Inadvertent name clashes may occur. Also performance?
1.11 - my variable {*}[info object vars [self]]
1.12 + # processing code in this context.
1.13 +
1.14 + # We no longer make all instance variables visible to
1.15 + # rendering code without additional declarations in the
1.16 + # templates. Inadvertent name clashes may occur. Also performance?
1.17 + # NO MORE - my variable {*}[info object vars [self]]
1.18 +
1.19 if {[page fetch layout content -alias [pagevar get section_layout_alias ""]]} {
1.20 response content $content
1.21 response content_type [page content_type]