syegulalp / mercury

Pure Python CMS and blogging solution using static HTML
http://mercury.genjipress.com
Other
18 stars 2 forks source link

Objects in transcluded templates, such as variable definitions, do not appear to be available globally #111

Closed syegulalp closed 8 years ago

syegulalp commented 8 years ago

If we have an include, and we define a variable in that include, it's not available to other templates that use the include.

One way around this is to stuff the variable into the tags object, which is available globally, but I'd like to not do that if possible.

syegulalp commented 8 years ago

This is due to the way includes work. We'll be adding a new kind of include that fixes this.