Closed alist closed 10 years ago
GROSS! Would their calling "var varname" for each local variable in render end up scoping correctly? Their solution seems a bit odd.
Also is the workaround critical as long as we scope properly by calling var?
Not exactly. Once the variable is global, its pretty much going to remain global until app restart. They're planning to no longer read the actual global
object. I think they'll instead allow their own internal options.global
passed as options, so you can save stuff like App Name or Title.
The workaround is not required. I was super curious about Jade's behaviour so was trying stuff out on that branch.
@alist, everything would've worked just fine, even with the global variable, had it not been for this nasty bug in Jade. This explains the "caching" behaviour you caught earlier. :)