You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #165 we added __all__ as a way to specify what variables get 'exported' from page 2 to the template. The default behavior, if no __all__ exists, is to export everything. This is arguably a security footgun, and the default behavior should be changed to export nothing, thus making all exports explicit.
Note that changing it will break everything: all test that use simplates, all existing aspen sites. Everything. To save us some work, we need an 'unstrict' config flag or something that will preserve old behavior.
The text was updated successfully, but these errors were encountered:
I think that the implicit passing of variables between pages is precisely the strength of simplates. AspenWeb/aspen.py#27 seems like a better solution to me than changing the default behaviour of simplates.
In #165 we added
__all__
as a way to specify what variables get 'exported' from page 2 to the template. The default behavior, if no__all__
exists, is to export everything. This is arguably a security footgun, and the default behavior should be changed to export nothing, thus making all exports explicit.Note that changing it will break everything: all test that use simplates, all existing aspen sites. Everything. To save us some work, we need an 'unstrict' config flag or something that will preserve old behavior.
The text was updated successfully, but these errors were encountered: